-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (41 loc) · 1.42 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "Build"
on:
workflow_dispatch:
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set Up Flutter
uses: subosito/[email protected]
with:
flutter-version: '3.24.3'
- name: Install Flutter Dependencies
run: flutter pub get
- name: Install linux dependencies
run: |
sudo apt-get update -y
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Build Linux App
run: |
flutter build linux --release --target-platform=linux-x64
flutter build linux --release --target-platform=linux-arm64
- name: Archive Linux App
run: |
tar -czf build/linux_build_arm64.tar.gz build/linux/arm64/release/bundle
tar -czf build/linux_build_x64.tar.gz build/linux/x64/release/bundle
- name: Upload Artifacts
uses: actions/[email protected]
with:
name: Releases
path: |
build/linux_build_arm64.tar.gz
build/linux_build_x64.tar.gz
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/linux_build_arm64.tar.gz,build/linux_build_x64.tar.gz"
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}