Merge pull request #592 from elliottkember/patch-1 #441
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
name: Build | |
on: | |
pull_request: | |
types: [opened, reopened] | |
push: | |
jobs: | |
build-example-ios: | |
name: build-example-ios | |
runs-on: macos-latest | |
steps: | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7.4' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install modules | |
run: yarn | |
- name: Install example | |
run: yarn bootstrap | |
- name: Build | |
run: cd example/ios && xcodebuild -workspace CameraKitExample.xcworkspace -configuration Debug -scheme CameraKitExample -sdk iphoneos build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | |
build-example-android: | |
name: build-example-android | |
runs-on: ubuntu-latest # using linux runner for speed | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Install modules | |
run: yarn | |
- name: Install example | |
run: yarn bootstrap-linux | |
- name: Build | |
run: cd example/android && ./gradlew assembleDebug |