Skip to content

Commit

Permalink
added test build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
noumantahir committed Jan 11, 2025
1 parent 1c2b056 commit 6bd7409
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
on:
push:
branches: [ "nt/gh-actions" ]
jobs:
ios-build:
name: iOS Dev Build
runs-on: macos-latest
steps:
- name: Show host machine infomation
run: uname -a
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Checkout repo from dev branch
uses: actions/checkout@v3
with:
ref: nt/gh-actions
- name: Install npm dependency
run: yarn install
- name: Cache cocoapods
uses: actions/cache@v3
with:
path: /ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install pod dependency
run: |
cd ios
bundle exec pod install
- name: Build iOS JS Bundle
run: |
yarn run package-ios
- name: Install bundler
run: |
cd ios
gem install bundler
- name: Install gem plugins
run: |
cd ios
bundle install
- name: Run fastlane
run: |
cd ios
bundle exec fastlane build_testflight
android-build:
name: Android Dev Build
runs-on: macos-latest
steps:
- name: Show host machine infomation
run: uname -a
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Checkout repo from dev branch
uses: actions/checkout@v3
with:
ref: nt/gh-actions
- name: Install npm dependency
run: yarn install
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: |
cd android
./gradlew build
- name: Build Android JS Bundle
run: |
yarn run package-android
- name: Delete Android build duplicate assets resource
run: yarn run delete-pics
- name: Install bundler
run: |
cd android
gem install bundler
- name: Install gem plugins
run: |
cd android
bundle install
- name: Run fastlane
run: |
cd android
bundle exec fastlane build_qa

0 comments on commit 6bd7409

Please sign in to comment.