Skip to content

Commit f264288

Browse files
authored
⚡ Update build tests action.
1 parent d7bae65 commit f264288

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/build_test.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ on:
66
pull_request:
77
branches: [ master ]
88

9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
109
jobs:
11-
test:
12-
name: Test on ${{ matrix.os }}
10+
test_iOS:
11+
name: Test iOS on ${{ matrix.os }}
1312
runs-on: ${{ matrix.os }}
1413
strategy:
1514
matrix:
16-
os: [ubuntu-latest, macos-latest]
15+
os: [macos-latest]
1716
steps:
1817
- uses: actions/checkout@v1
1918
- uses: actions/setup-java@v1
@@ -26,6 +25,25 @@ jobs:
2625
- run: flutter --version
2726
- run: flutter pub get
2827
- run: flutter analyze lib example/lib
29-
- run: cd example
30-
- run: flutter build apk --debug
31-
- run: flutter build ios --no-code-sign
28+
- run: cd example; flutter build ios --no-code-sign
29+
30+
test_android:
31+
name: Test android on ${{ matrix.os }}
32+
runs-on: ${{ matrix.os }}
33+
strategy:
34+
matrix:
35+
os: [ubuntu-latest]
36+
steps:
37+
- uses: actions/checkout@v1
38+
- uses: actions/setup-java@v1
39+
with:
40+
java-version: '8.x'
41+
- uses: subosito/flutter-action@v1
42+
with:
43+
channel: 'stable'
44+
- run: dart --version
45+
- run: flutter --version
46+
- run: flutter pub get
47+
- run: flutter analyze lib example/lib
48+
- run: sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;20.0.5594570"
49+
- run: cd example; sudo flutter build apk --debug

0 commit comments

Comments
 (0)