Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: compile ci checking #41

Merged
merged 5 commits into from
Jan 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/native_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
android-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- uses: actions/cache@v2
with:
path: |
~/.npm
~/node_modules
~/example/node_modules
~/.config/yarn/global
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Yarn
run: |
npm install -g yarn
yarn

- name: Compile Android Example (Debug)
working-directory: ./example/android/
run: ./gradlew assembleDebug

ios-compile:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- uses: actions/cache@v2
with:
path: |
~/.npm
~/node_modules
~/example/node_modules
~/.config/yarn/global
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Cache cocoapods
uses: actions/cache@v2
with:
path: ./example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-

- name: Install Yarn
run: |
npm install -g yarn
yarn

- name: Compile iOS Example
working-directory: ./example/ios/
run: set -o pipefail && xcodebuild -workspace LivekitReactNativeExample.xcworkspace/ -scheme LivekitReactNativeExample -destination generic/platform=iOS clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO" | xcpretty