Skip to content

Commit eb410e2

Browse files
committed
update actions
1 parent 19ef5d8 commit eb410e2

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/actions/publish_flutter_package/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ runs:
3737

3838
- name: 📢 Publish
3939
shell: ${{ inputs.shell }}
40-
run: flutter config --enable-swift-package-manager;flutter pub publish -f
40+
run: flutter pub publish -f
4141
working-directory: ${{ inputs.working-directory }}

.github/workflows/build_test.yml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,25 @@ jobs:
1818
- uses: subosito/flutter-action@v2
1919
with:
2020
channel: stable
21-
- run: flutter config --enable-swift-package-manager
2221
- run: flutter pub get
2322
- run: cd example; flutter build ios --no-codesign
23+
24+
test_iOS_SPM:
25+
name: Test iOS on ${{ matrix.os }}
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
matrix:
29+
os: [macos-latest]
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: subosito/flutter-action@v2
33+
with:
34+
channel: stable
35+
- run: flutter config --enable-swift-package-manager
36+
- run: flutter pub get
37+
- run: cd example; flutter build ios --no-codesign
38+
39+
2440
test_macOS:
2541
name: Test macOS on ${{ matrix.os }}
2642
runs-on: ${{ matrix.os }}
@@ -32,7 +48,22 @@ jobs:
3248
- uses: subosito/flutter-action@v2
3349
with:
3450
channel: stable
35-
- run: flutter config --enable-swift-package-manager
51+
- run: flutter pub get
52+
- run: cd example; flutter build macos
53+
54+
55+
test_macOS_SPM:
56+
name: Test macOS on ${{ matrix.os }}
57+
runs-on: ${{ matrix.os }}
58+
strategy:
59+
matrix:
60+
os: [macos-latest]
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: subosito/flutter-action@v2
64+
with:
65+
channel: stable
66+
- run: flutter config --enable-swift-package-manager
3667
- run: flutter pub get
3768
- run: cd example; flutter build macos
3869

@@ -53,5 +84,5 @@ jobs:
5384
- uses: subosito/flutter-action@v2
5485
with:
5586
channel: stable
56-
- run: flutter config --enable-swift-package-manager; flutter pub get
87+
- run: flutter pub get
5788
- run: cd example; flutter build apk --debug

0 commit comments

Comments
 (0)