-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Example app build workflows
Added CI jobs for building Example app in order to check the validity of native code.
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 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,34 @@ | ||
name: Test Android build | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'android/**' | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: Example | ||
concurrency: | ||
group: android-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: 'yarn' | ||
cache-dependency-path: 'Example/yarn.lock' | ||
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: yarn | ||
- name: Build app | ||
working-directory: ${{ env.WORKING_DIRECTORY }}/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,37 @@ | ||
name: Test iOS build | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'apple/**' | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
env: | ||
WORKING_DIRECTORY: Example | ||
concurrency: | ||
group: ios-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: 'yarn' | ||
cache-dependency-path: 'Example/yarn.lock' | ||
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: yarn | ||
- name: Install pods | ||
working-directory: ${{ env.WORKING_DIRECTORY }}/ios | ||
run: pod install | ||
- name: Build app | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: yarn ios |