Skip to content

Commit

Permalink
fix(ci): fix android and ios build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 28, 2024
1 parent 6b657e4 commit 9298369
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17

- name: Install package npm dependencies
run: yarn --frozen-lockfile
shell: bash

- name: Install example npm dependencies
run: yarn example --frozen-lockfile
shell: bash
run: yarn --frozen-lockfile
working-directory: example

- name: Build Android test app
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: -PnewArchEnabled=${{matrix.newArchEnabled}} :app:assembleRelease
build-root-directory: example/android

timeout-minutes: 60
14 changes: 9 additions & 5 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Install package npm dependencies
run: yarn --frozen-lockfile
shell: bash

- name: Install example npm dependencies
run: yarn example --frozen-lockfile
shell: bash
- name: Install Ruby gems
run: gem install cocoapods -v 1.15.2
run: yarn --frozen-lockfile
working-directory: example

- name: Install Pods
run: ${{matrix.extraEnv}} pod install
working-directory: example/ios

- name: Build iOS test app
run: xcodebuild -workspace Example.xcworkspace -scheme Example -destination "platform=iOS Simulator,name=iPhone 14" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
working-directory: example/ios

timeout-minutes: 60

0 comments on commit 9298369

Please sign in to comment.