1- name : All Builds (Linux, macOS, Windows, Android, IPA, APK, AAB )
1+ name : Desktop and Mobile Builds (Linux, macOS, Windows, AAB, APK, IPA )
22
33on :
44 # Runs on push to any of the below branches
55 push :
66 branches :
7- - master
87 - main
8+
99 # Runs on pull request events that target one of the below branches
1010 pull_request :
1111 branches :
12- - master
1312 - main
1413
1514 # Allows you to run this workflow manually from the Actions tab of the repository
1918 # https://flet.dev/docs/publish#versioning
2019 BUILD_NUMBER : 1
2120 BUILD_VERSION : 1.0.0
22- PYTHON_VERSION : 3.12.2
23- FLUTTER_VERSION : 3.24.0
21+
22+ # Python version to use
23+ PYTHON_VERSION : 3.12.8
24+
25+ # Flutter version to use
26+ FLUTTER_VERSION : 3.27.4
27+
28+ # flet-cli version to install for `flet build`
29+ FLET_CLI_VERSION : 0.27.5
30+
31+ # Ensures Python uses UTF-8 encoding by default
32+ PYTHONUTF8 : 1
33+
34+ # Disables rich text formatting in Flet CLI output
35+ FLET_CLI_NO_RICH_OUTPUT : 1
36+
37+ # Disables progress bars when using UV
38+ UV_NO_PROGRESS : 1
2439
2540jobs :
2641 build-linux :
@@ -35,10 +50,10 @@ jobs:
3550 with :
3651 python-version : ${{ env.PYTHON_VERSION }}
3752
38- - name : Install Python Dependencies
53+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
3954 run : |
4055 python -m pip install --upgrade pip
41- pip install -r requirements.txt
56+ pip install flet-cli==$FLET_CLI_VERSION
4257
4358 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
4459 uses : subosito/flutter-action@v2
4762
4863 - name : Patch for linux build
4964 run : |
50- flutter doctor
5165 sudo apt-get update -y
5266 sudo apt-get install -y ninja-build libgtk-3-dev
53- flutter doctor
5467
5568 - name : Flet Build Linux
5669 run : |
@@ -77,10 +90,10 @@ jobs:
7790 with :
7891 python-version : ${{ env.PYTHON_VERSION }}
7992
80- - name : Install Python Dependencies
93+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
8194 run : |
8295 python -m pip install --upgrade pip
83- pip install -r requirements.txt
96+ pip install flet-cli==$FLET_CLI_VERSION
8497
8598 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
8699 uses : subosito/flutter-action@v2
@@ -112,10 +125,10 @@ jobs:
112125 with :
113126 python-version : ${{ env.PYTHON_VERSION }}
114127
115- - name : Install Python Dependencies
128+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
116129 run : |
117130 python -m pip install --upgrade pip
118- pip install -r requirements.txt
131+ pip install flet-cli==$env:FLET_CLI_VERSION
119132
120133 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
121134 uses : subosito/flutter-action@v2
@@ -136,7 +149,7 @@ jobs:
136149 overwrite : false
137150
138151 build-aab :
139- runs-on : macos -latest
152+ runs-on : ubuntu -latest
140153
141154 steps :
142155 - name : Checkout code
@@ -147,10 +160,10 @@ jobs:
147160 with :
148161 python-version : ${{ env.PYTHON_VERSION }}
149162
150- - name : Install Python Dependencies
163+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
151164 run : |
152165 python -m pip install --upgrade pip
153- pip install -r requirements.txt
166+ pip install flet-cli==$FLET_CLI_VERSION
154167
155168 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
156169 uses : subosito/flutter-action@v2
@@ -182,22 +195,16 @@ jobs:
182195 with :
183196 python-version : ${{ env.PYTHON_VERSION }}
184197
185- - name : Install Python Dependencies
198+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
186199 run : |
187200 python -m pip install --upgrade pip
188- pip install -r requirements.txt
201+ pip install flet-cli==$FLET_CLI_VERSION
189202
190203 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
191204 uses : subosito/flutter-action@v2
192205 with :
193206 flutter-version : ${{ env.FLUTTER_VERSION }}
194207
195- - name : Setup Java JDK
196- uses : actions/setup-java@v4.2.1
197- with :
198- distribution : ' temurin'
199- java-version : ' 21'
200-
201208 - name : Flet Build APK
202209 run : |
203210 flutter config --no-analytics
@@ -223,10 +230,10 @@ jobs:
223230 with :
224231 python-version : ${{ env.PYTHON_VERSION }}
225232
226- - name : Install Python Dependencies
233+ - name : Install flet-cli ${{ env.FLET_CLI_VERSION }}
227234 run : |
228235 python -m pip install --upgrade pip
229- pip install -r requirements.txt
236+ pip install flet-cli==$FLET_CLI_VERSION
230237
231238 - name : Setup Flutter ${{ env.FLUTTER_VERSION }}
232239 uses : subosito/flutter-action@v2
@@ -244,4 +251,4 @@ jobs:
244251 name : ipa-build-artifact
245252 path : build/ipa
246253 if-no-files-found : warn
247- overwrite : false
254+ overwrite : false
0 commit comments