-
Notifications
You must be signed in to change notification settings - Fork 148
31 lines (29 loc) · 1.19 KB
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CI
on: [pull_request]
jobs:
android:
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode_13.0.app/Contents/Developer
steps:
- uses: actions/checkout@v1
# Build tools 31.0.0 doesn't include dx (only d8), which Cordova expects to find.
# Uninstalling causes automatic build-tools resolution to fall back to an older
# version that does include dx.
- name: Workaround "Build-tool 31.0.0 is missing DX" error
run: bash $ANDROID_SDK_ROOT/tools/bin/sdkmanager --uninstall 'build-tools;31.0.0'
# Build tools 32.0.0 doesn't include dx (only d8), which Cordova expects to find.
# Uninstalling causes automatic build-tools resolution to fall back to an older
# version that does include dx.
- name: Workaround "Build-tool 32.0.0 is missing DX" error
run: bash $ANDROID_SDK_ROOT/tools/bin/sdkmanager --uninstall 'build-tools;32.0.0'
- name: Run CI
run: bash ./scripts/run_ci_tasks.sh -a
ios:
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- name: Run CI
run: bash ./scripts/run_ci_tasks.sh -i