1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout Repository
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v5
1919 - name : Setup Flutter
2020 uses : subosito/flutter-action@v2
2121 with :
3030 runs-on : ubuntu-latest
3131 steps :
3232 - name : Checkout Repository
33- uses : actions/checkout@v4
33+ uses : actions/checkout@v5
3434 - name : Setup Flutter Environment
3535 uses : subosito/flutter-action@v2
3636 with :
@@ -46,44 +46,54 @@ jobs:
4646 run-tests :
4747 name : " Run Tests"
4848 runs-on : ubuntu-latest
49+ strategy :
50+ fail-fast : false
51+ matrix :
52+ sdk : [ '3.27.0', '' ]
4953 steps :
5054 - name : Checkout Repository
51- uses : actions/checkout@v4
55+ uses : actions/checkout@v5
5256 - name : Setup Flutter Environment
5357 uses : subosito/flutter-action@v2
5458 with :
55- channel : " stable "
59+ flutter-version : ${{ matrix.sdk }}
5660 cache : true
5761 - name : Run Tests with Coverage
5862 run : flutter test -r expanded --coverage
5963 - name : Run Codecov
64+ if : ${{ matrix.sdk == '' }}
6065 uses : codecov/codecov-action@v5
6166 env :
6267 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
6368
6469 build-android :
6570 name : " Build Android Example App"
6671 runs-on : ubuntu-latest
72+ strategy :
73+ fail-fast : false
74+ matrix :
75+ sdk : [ '3.27.0', '' ]
6776 defaults :
6877 run :
6978 working-directory : ./example
7079 steps :
7180 - name : Checkout Repository
72- uses : actions/checkout@v4
81+ uses : actions/checkout@v5
7382 - name : Setup Java 21 Environment
74- uses : actions/setup-java@v4
83+ uses : actions/setup-java@v5
7584 with :
7685 distribution : " temurin"
7786 java-version : " 21"
7887 cache : ' gradle'
7988 - name : Setup Flutter Environment
8089 uses : subosito/flutter-action@v2
8190 with :
82- channel : " stable "
91+ flutter-version : ${{ matrix.sdk }}
8392 cache : true
8493 - name : Build Android Application
8594 run : flutter build apk --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
8695 - name : Archive Artifact
96+ if : ${{ matrix.sdk == '' }}
8797 uses : actions/upload-artifact@v4
8898 with :
8999 name : apk-build
@@ -93,23 +103,32 @@ jobs:
93103 build-windows :
94104 name : " Build Windows Example App"
95105 runs-on : windows-latest
106+ strategy :
107+ fail-fast : false
108+ matrix :
109+ sdk : [ '3.27.0', '' ]
96110 defaults :
97111 run :
98112 working-directory : ./example
99113 steps :
100114 - name : Checkout Repository
101- uses : actions/checkout@v4
115+ uses : actions/checkout@v5
102116 - name : Setup Flutter Environment
103117 uses : subosito/flutter-action@v2
104118 with :
105- channel : " stable "
119+ flutter-version : ${{ matrix.sdk }}
106120 cache : true
107121 - name : Build Windows Application
108122 run : flutter build windows --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
123+ - name : Install Inno Setup
124+ if : ${{ matrix.sdk == '' }}
125+ run : choco install innosetup --yes --no-progress
109126 - name : Create Windows Application Installer
127+ if : ${{ matrix.sdk == '' }}
110128 run : iscc "windowsApplicationInstallerSetup.iss"
111129 working-directory : .
112130 - name : Archive Artifact
131+ if : ${{ matrix.sdk == '' }}
113132 uses : actions/upload-artifact@v4
114133 with :
115134 name : exe-build
@@ -119,21 +138,26 @@ jobs:
119138 build-web :
120139 name : " Build Web Example App"
121140 runs-on : ubuntu-latest
141+ strategy :
142+ fail-fast : false
143+ matrix :
144+ sdk : [ '3.27.0', '' ]
122145 defaults :
123146 run :
124147 working-directory : ./example
125148 steps :
126149 - name : Checkout Repository
127- uses : actions/checkout@v4
150+ uses : actions/checkout@v5
128151 - name : Setup Flutter Environment
129152 uses : subosito/flutter-action@v2
130153 with :
131- channel : " stable "
154+ flutter-version : ${{ matrix.sdk }}
132155 cache : true
133156 - name : Build Web Application
134157 run : flutter build web --wasm --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
135158 - name : Archive Artifact
136159 uses : actions/upload-artifact@v4
160+ if : ${{ matrix.sdk == '' }}
137161 with :
138162 name : web-build
139163 path : example/build/web
0 commit comments