Skip to content

Commit 8911e89

Browse files
committed
Added linux release in github actions
1 parent 5e62259 commit 8911e89

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,44 @@ on:
55

66
name: Release Builds
77
jobs:
8-
# linux:
9-
# name: Linux
10-
# runs-on: ubuntu-latest
11-
# steps:
12-
# - name: Set up Flutter
13-
# uses: subosito/flutter-action@v2
14-
# with:
15-
# flutter-version: '3.22.2'
16-
# channel: 'stable'
17-
18-
# - uses: actions/checkout@v4
19-
# with:
20-
# path: 'app'
8+
linux:
9+
name: Linux
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Set up Flutter
13+
uses: subosito/flutter-action@v2
14+
with:
15+
flutter-version: "3.24.4"
16+
channel: "stable"
2117

22-
# - name: Install required build tools for linux
23-
# run: |
24-
# sudo apt-get update -y
25-
# sudo apt-get upgrade -y
26-
# sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27-
# sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
18+
- uses: actions/checkout@v4
19+
with:
20+
path: "app"
2821

29-
# - run: |
30-
# cd app
31-
# flutter config --enable-linux-desktop
32-
# flutter pub get
33-
# flutter build linux --release
34-
# cd build/linux/release
35-
# zip -r linux-release.zip bundle
22+
- name: Install required build tools for linux
23+
run: |
24+
sudo apt-get update -y
25+
sudo apt-get upgrade -y
26+
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27+
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
3628
37-
# - name: Create linux Release
38-
# uses: ncipollo/release-action@v1
39-
# with:
40-
# artifacts: 'app/build/linux/release/linux-release.zip'
41-
# token: ${{ secrets.TOKEN }}
42-
# allowUpdates: true
29+
- run: |
30+
cd app
31+
flutter config --enable-linux-desktop
32+
flutter pub get
33+
flutter build linux --release --target-platform linux-x64
34+
cd build/linux/x64/release
35+
zip -r linux-x64.zip bundle
36+
flutter build linux --release --target-platform linux-arm64
37+
cd build/linux/arm64/release
38+
zip -r linux-arm64.zip bundle
39+
40+
- name: Create linux Release
41+
uses: ncipollo/release-action@v1
42+
with:
43+
artifacts: "app/build/linux/x64/release/linux-x64.zip,app/build/linux/arm64/release/linux-arm64.zip"
44+
token: ${{ secrets.TOKEN }}
45+
allowUpdates: true
4346

4447
web:
4548
name: Web

0 commit comments

Comments
 (0)