11name : " Branch & PR"
22on :
33 push :
4- branches : [ ' !master' ]
4+ branches : [ " !master" ]
55 pull_request :
66 workflow_dispatch :
77
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout Repository
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v6
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@v6
3434 - name : Setup Flutter Environment
3535 uses : subosito/flutter-action@v2
3636 with :
@@ -46,45 +46,55 @@ 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@v6
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
60- uses : codecov/codecov-action@v5
64+ if : ${{ matrix.sdk == '' }}
65+ uses : codecov/codecov-action@v6
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@v6
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"
78- cache : ' gradle'
87+ 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
85- run : flutter build apk --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
94+ run : flutter build apk --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define= flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
8695 - name : Archive Artifact
87- uses : actions/upload-artifact@v4
96+ if : ${{ matrix.sdk == '' }}
97+ uses : actions/upload-artifact@v7
8898 with :
8999 name : apk-build
90100 path : example/build/app/outputs/apk/release
@@ -93,24 +103,33 @@ 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@v6
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
108- run : flutter build windows --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
122+ 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
113- uses : actions/upload-artifact@v4
131+ if : ${{ matrix.sdk == '' }}
132+ uses : actions/upload-artifact@v7
114133 with :
115134 name : exe-build
116135 path : windowsTemp/WindowsApplication.exe
@@ -119,22 +138,27 @@ 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@v6
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
134- run : flutter build web --wasm --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
157+ run : flutter build web --wasm --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define= flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
135158 - name : Archive Artifact
136- uses : actions/upload-artifact@v4
159+ uses : actions/upload-artifact@v7
160+ if : ${{ matrix.sdk == '' }}
137161 with :
138162 name : web-build
139163 path : example/build/web
140- if-no-files-found : error
164+ if-no-files-found : error
0 commit comments