-
Notifications
You must be signed in to change notification settings - Fork 609
89 lines (80 loc) · 2.31 KB
/
cordova.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Cordova
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
cordova-android:
name: android@${{ matrix.platform }} cordova@${{ matrix.cordova }}
runs-on: ubuntu-${{ matrix.ubuntu }}
strategy:
fail-fast: false
matrix:
include:
- jdk: 16
cordova: latest
platform: latest
node: 18.x
ubuntu: 22.04
android-cmdline-tools-version: 9862592
- jdk: 11
cordova: 11
platform: 10
node: 14.x
ubuntu: 20.04
android-cmdline-tools-version: 9862592
- jdk: 8
cordova: 10
platform: 10
node: 14.x
ubuntu: 20.04
android-cmdline-tools-version: 8512546
steps:
- uses: actions/checkout@v3
- name: Setup JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: ${{ matrix.android-cmdline-tools-version }}
- name: Build test app
run: |
sdkmanager "build-tools;30.0.3"
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add android@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build android
cordova-ios:
name: ios@${{ matrix.platform }} cordova@${{ matrix.cordova }}
runs-on: macos-latest
strategy:
matrix:
include:
- cordova: latest
platform: latest
node: 18.x
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add ios@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build ios