-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Check Expo dev-client nightly build | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/check-expo-dev-client-action.yml | ||
- .github/workflows/check-expo-dev-client-nightly.yml | ||
- .github/workflows/check-expo-dev-client.yml | ||
schedule: | ||
- cron: '0 0 * * *' # after publishing new nightly version on NPM | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-check-expo-dev-client-workflow: | ||
if: github.repository == 'software-mansion/react-native-reanimated' | ||
uses: ./.github/workflows/check-expo-dev-client.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,84 @@ | ||
name: Check Expo dev-client nightly build | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/check-expo-dev-client-nightly.yml | ||
schedule: | ||
- cron: '0 0 * * *' # after publishing new nightly version on NPM | ||
workflow_dispatch: | ||
inputs: | ||
expo-dev-client-dist-tag: | ||
required: true | ||
type: string | ||
|
||
env: | ||
SCRIPT_PATH: reanimated_repo/.github/workflows/helper/configureDevClient.js | ||
|
||
jobs: | ||
check-expo-dev-client-next-availability: | ||
runs-on: ubuntu-latest | ||
build_ios: | ||
if: github.repository == 'software-mansion/react-native-reanimated' | ||
runs-on: macos-12 | ||
strategy: | ||
matrix: | ||
react-native-architecture: ['Paper', 'Fabric'] | ||
fail-fast: false | ||
concurrency: | ||
group: ios-expo-dev-client-${{ matrix.react-native-architecture }}-${{inputs.expo-dev-client-dist-tag}}${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check Expo dev-client next availability | ||
continue-on-error: true | ||
run: npm dist-tag ls expo-dev-client | grep next | ||
id: check-next-availability | ||
- name: Run next build | ||
if: steps.check-next-availability.outcome == 'success' | ||
uses: ./.github/workflows/check-expo-dev-client-action.yml | ||
- name: Check out reanimated repository | ||
uses: actions/checkout@v4 | ||
with: | ||
expo_dev_client_version: next | ||
- name: Run latest build | ||
uses: ./.github/workflows/check-expo-dev-client-action.yml | ||
path: 'reanimated_repo' | ||
- name: Create Expo app | ||
run: npx create-expo-app app | ||
- name: Install expo-dev-client | ||
working-directory: app | ||
run: npm install expo-dev-client@${{ inputs.expo-dev-client-dist-tag }} | ||
- name: Setup configuration | ||
run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier | ||
- name: Expo prebuild | ||
working-directory: app | ||
run: npx expo prebuild | ||
- name: Install Reanimated | ||
working-directory: app | ||
run: npm install react-native-reanimated@nightly | ||
- name: Set Fabric | ||
if: ${{ matrix.react-native-architecture == 'Fabric' }} | ||
run: node ${{ env.SCRIPT_PATH }} setupFabricIOS | ||
- name: Install Pods | ||
working-directory: app/ios | ||
run: pod install | ||
- name: Build app | ||
working-directory: app | ||
run: yarn react-native run-ios --simulator='iPhone 14' | ||
|
||
build_android: | ||
if: github.repository == 'software-mansion/react-native-reanimated' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
react-native-architecture: ['Paper', 'Fabric'] | ||
fail-fast: false | ||
concurrency: | ||
group: android-expo-dev-client-${{ matrix.react-native-architecture }}-${{inputs.expo-dev-client-dist-tag}}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Check out reanimated repository | ||
uses: actions/checkout@v4 | ||
with: | ||
expo_dev_client_version: latest | ||
path: 'reanimated_repo' | ||
- name: Create Expo app | ||
run: npx create-expo-app app | ||
- name: Install expo-dev-client | ||
working-directory: app | ||
run: npm install expo-dev-client@${{ inputs.expo-dev-client-dist-tag }} | ||
- name: Setup configuration | ||
run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier | ||
- name: Expo prebuild | ||
working-directory: app | ||
run: npx expo prebuild | ||
- name: Install Reanimated | ||
working-directory: app | ||
run: npm install react-native-reanimated@nightly | ||
- name: Set Fabric | ||
if: ${{ matrix.react-native-architecture == 'Fabric' }} | ||
run: node ${{ env.SCRIPT_PATH }} setupFabricAndroid | ||
- name: Build app | ||
working-directory: app/android | ||
run: ./gradlew assembleDebug --console=plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check Expo dev-client nightly build | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-expo-dev-client-next-availability: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Expo dev-client next availability | ||
continue-on-error: true | ||
run: npm dist-tag ls expo-dev-client | grep next | ||
id: check-next-availability | ||
- name: Run next build | ||
if: steps.check-next-availability.outcome == 'success' | ||
uses: ./.github/workflows/check-expo-dev-client-action.yml | ||
with: | ||
expo_dev_client_version: next | ||
- name: Run latest build | ||
uses: ./.github/workflows/check-expo-dev-client-action.yml | ||
with: | ||
expo_dev_client_version: latest |