-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (50 loc) · 1.88 KB
/
ci_spm.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: SPM
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
with:
path: flutter_platform_alert
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
# flutter-version: 3.26.x
channel: "main" # optional, default to: 'stable'
- name: Enable SPM
run: |
flutter config --enable-swift-package-manager
- name: Doctor
# Run doctor, for ease of debugging any issues.
run: flutter doctor -v
- name: Install dependencies
run: flutter packages get
working-directory: ${{ github.workspace }}/flutter_platform_alert/example
- name: Cleans up macOS project
run: |
pod deintegrate
echo "#include \"Generated.xcconfig\"" > Flutter/Debug.xcconfig
cat Flutter/Debug.xcconfig
echo "#include \"Generated.xcconfig\"" > Flutter/Release.xcconfig
cat Flutter/Release.xcconfig
working-directory: ${{ github.workspace }}/flutter_platform_alert/example/macos
- name: Build macOS
run: flutter build macos
working-directory: ${{ github.workspace }}/flutter_platform_alert/example
- name: Cleans up iOS project
run: |
pod deintegrate
rm Podfile
echo "#include \"Generated.xcconfig\"" > Flutter/Debug.xcconfig
cat Flutter/Debug.xcconfig
echo "#include \"Generated.xcconfig\"" > Flutter/Release.xcconfig
cat Flutter/Release.xcconfig
working-directory: ${{ github.workspace }}/flutter_platform_alert/example/ios
- name: Build iOS
run: |
flutter build ios --debug --no-codesign --simulator
working-directory: ${{ github.workspace }}/flutter_platform_alert/example