Skip to content

Commit a8ee36b

Browse files
ci: add linux support
1 parent 3af207a commit a8ee36b

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,41 @@ jobs:
178178
path: dist/*.dmg
179179
retention-days: 30
180180

181+
linux:
182+
runs-on: ubuntu-latest
183+
steps:
184+
- name: Clone repository
185+
uses: actions/checkout@v4
186+
187+
- name: Install Linux dependencies
188+
run: |
189+
sudo apt-get update
190+
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
191+
192+
- name: Set up Flutter
193+
uses: subosito/flutter-action@v2
194+
with:
195+
flutter-version: '3.40.0-0.2.pre'
196+
channel: 'beta'
197+
198+
- name: Get Flutter dependencies
199+
run: flutter pub get
200+
201+
- name: Auto-generated files setup
202+
run: flutter pub run build_runner build --delete-conflicting-outputs
203+
204+
- name: Build Linux app
205+
run: flutter build linux --release
206+
207+
- name: Upload Linux artifact
208+
uses: actions/upload-artifact@v4
209+
with:
210+
name: linux-app
211+
path: build/linux/x64/release/bundle/*
212+
retention-days: 30
213+
181214
release:
182-
needs: [android, windows, ios, macos]
215+
needs: [android, windows, ios, macos, linux]
183216
runs-on: ubuntu-latest
184217
if: startsWith(github.ref, 'refs/tags/')
185218
steps:
@@ -225,6 +258,13 @@ jobs:
225258
find artifacts/macos-dmg -name "*.dmg" -exec cp {} "release_assets/macos-${VERSION}.dmg" \;
226259
fi
227260
261+
# 5. Linux (Tarball)
262+
if [ -d "artifacts/linux-app" ]; then
263+
cd artifacts/linux-app
264+
tar -czf "../../release_assets/linux-${VERSION}.tar.gz" .
265+
cd ../..
266+
fi
267+
228268
# List files to verify
229269
ls -l release_assets/
230270

ios/Podfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ PODS:
5151
- sqlite3/perf-threadsafe
5252
- sqlite3/rtree
5353
- sqlite3/session
54+
- url_launcher_ios (0.0.1):
55+
- Flutter
5456

5557
DEPENDENCIES:
5658
- app_links (from `.symlinks/plugins/app_links/ios`)
@@ -66,6 +68,7 @@ DEPENDENCIES:
6668
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
6769
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
6870
- sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/darwin`)
71+
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
6972

7073
SPEC REPOS:
7174
trunk:
@@ -98,6 +101,8 @@ EXTERNAL SOURCES:
98101
:path: ".symlinks/plugins/sqflite_darwin/darwin"
99102
sqlite3_flutter_libs:
100103
:path: ".symlinks/plugins/sqlite3_flutter_libs/darwin"
104+
url_launcher_ios:
105+
:path: ".symlinks/plugins/url_launcher_ios/ios"
101106

102107
SPEC CHECKSUMS:
103108
app_links: a754cbec3c255bd4bbb4d236ecc06f28cd9a7ce8
@@ -114,6 +119,7 @@ SPEC CHECKSUMS:
114119
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
115120
sqlite3: 8d708bc63e9f4ce48f0ad9d6269e478c5ced1d9b
116121
sqlite3_flutter_libs: d13b8b3003f18f596e542bcb9482d105577eff41
122+
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
117123

118124
PODFILE CHECKSUM: fd33f5f1975d674cca43343bc22b2937f97c0906
119125

0 commit comments

Comments
 (0)