Skip to content

Commit ed51569

Browse files
committed
CMake setup for aab and apk builds
1 parent 281debd commit ed51569

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: All Builds (Linux, macOS, Windows, IPA, APK, AAB, Web)
1+
name: Flet Build
22

33
on:
44
push:
@@ -7,12 +7,13 @@ on:
77
- cron: "0 12 * * *" # auto-runs every day at 12:00 noon UTC
88

99
env:
10-
# https://flet.dev/docs/publish#versioning
11-
BUILD_NUMBER: 1
12-
BUILD_VERSION: 1.0.0
1310
UV_PYTHON: 3.12
14-
UV_PRERELEASE: "allow"
1511
PYTHONUTF8: 1
12+
CMAKE_VERSION: 3.22.1
13+
14+
# https://docs.flet.dev/publish/#versioning
15+
BUILD_NUMBER: 1
16+
BUILD_VERSION: 1.0.0
1617
FLET_CLI_NO_RICH_OUTPUT: 1
1718

1819
jobs:
@@ -62,7 +63,7 @@ jobs:
6263

6364
- name: Flet Build Linux
6465
run: |
65-
uv run flet build linux --yes --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
66+
uv run flet build linux --yes -vv --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
6667
6768
- name: Upload Linux Artifact
6869
uses: actions/[email protected]
@@ -89,7 +90,7 @@ jobs:
8990
9091
- name: Flet Build macOS
9192
run: |
92-
uv run flet build macos --yes --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
93+
uv run flet build macos --yes -vv --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
9394
9495
- name: Upload macOS Artifact
9596
uses: actions/[email protected]
@@ -118,7 +119,7 @@ jobs:
118119
- name: Flet Build Windows
119120
shell: bash
120121
run: |
121-
uv run flet build windows --yes --verbose --no-rich-output --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
122+
uv run flet build windows --yes -vv --no-rich-output --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
122123
123124
- name: Upload Windows Artifact
124125
uses: actions/[email protected]
@@ -139,6 +140,11 @@ jobs:
139140
- name: Checkout code
140141
uses: actions/checkout@v4
141142

143+
- name: Setup cmake
144+
uses: jwlawson/actions-setup-cmake@v2
145+
with:
146+
cmake-version: ${{ env.CMAKE_VERSION }}
147+
142148
- name: Setup uv
143149
uses: astral-sh/setup-uv@v6
144150

@@ -151,7 +157,7 @@ jobs:
151157
- name: Flet Build AAB
152158
shell: bash
153159
run: |
154-
uv run flet build aab --yes --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
160+
uv run flet build aab --yes -vv --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
155161
156162
- name: Upload AAB Artifact
157163
uses: actions/[email protected]
@@ -172,6 +178,11 @@ jobs:
172178
- name: Checkout code
173179
uses: actions/checkout@v4
174180

181+
- name: Setup cmake
182+
uses: jwlawson/actions-setup-cmake@v2
183+
with:
184+
cmake-version: ${{ env.CMAKE_VERSION }}
185+
175186
- name: Setup uv
176187
uses: astral-sh/setup-uv@v6
177188

@@ -184,7 +195,7 @@ jobs:
184195
- name: Flet Build APK
185196
shell: bash
186197
run: |
187-
uv run flet build apk --yes --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
198+
uv run flet build apk --yes -vv --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
188199
189200
- name: Upload APK Artifact
190201
uses: actions/[email protected]
@@ -211,7 +222,7 @@ jobs:
211222
212223
- name: Flet Build IPA
213224
run: |
214-
uv run flet build ipa --yes --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
225+
uv run flet build ipa --yes -vv --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION
215226
216227
- name: Upload IPA Artifact
217228
uses: actions/[email protected]
@@ -244,7 +255,7 @@ jobs:
244255
- name: Flet Build Web
245256
shell: bash
246257
run: |
247-
uv run flet build web --yes --verbose
258+
uv run flet build web --yes -vv
248259
249260
- name: Upload Web Artifact
250261
uses: actions/[email protected]

0 commit comments

Comments
 (0)