@@ -12,12 +12,23 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15- test :
16- name : Build, Lint and Test the SDK
15+ apple :
16+ name : Apple build & test (${{ matrix.dependency_manager }})
1717 runs-on : macos-26
18+ # Swift Package Manager derives the plugin's package identity from the checkout
19+ # directory name, which must match the package name `telemetrydecksdk`.
20+ defaults :
21+ run :
22+ working-directory : telemetrydecksdk
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ dependency_manager : [cocoapods, spm]
1827 steps :
1928 - name : Repository checkout
2029 uses : actions/checkout@v5
30+ with :
31+ path : telemetrydecksdk
2132 - name : Setup Xcode
2233 uses : maxim-lobanov/setup-xcode@v1
2334 with :
2839 uses : subosito/flutter-action@v2
2940 with :
3041 channel : stable
42+ - name : Select dependency manager
43+ run : |
44+ if [ "${{ matrix.dependency_manager }}" = "spm" ]; then
45+ flutter config --enable-swift-package-manager
46+ else
47+ flutter config --no-enable-swift-package-manager
48+ fi
49+ - name : Install dependencies
50+ run : flutter pub get
51+ - name : Build
52+ run : |
53+ cd example
54+ flutter build ios --release --no-codesign
55+ flutter build macos
56+ - name : Test macOS
57+ run : make test-macos
58+ # todo: add iOS testing (with code signing enabled)
59+
60+ android :
61+ name : Android build, lint & test
62+ runs-on : macos-26
63+ steps :
64+ - name : Repository checkout
65+ uses : actions/checkout@v5
66+ - name : Setup Flutter
67+ uses : subosito/flutter-action@v2
68+ with :
69+ channel : stable
3170 - name : Configure JDK
3271 uses : actions/setup-java@v4
3372 with :
3877 - name : Build
3978 run : |
4079 cd example
41- flutter build ios --release --no-codesign
42- flutter build macos
4380 flutter build apk
4481 - name : Lint
4582 run : make checklint
4683 - name : Test Android
4784 run : make test-android
48- - name : Test macOS
49- run : make test-macos
50- # todo: add iOS testing (with code signing enabled)
0 commit comments