-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.61 KB
/
flutter_build.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
53
54
55
56
---
name: flutter_build_linux
permissions:
contents: write
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
jobs:
main:
runs-on: ${{ matrix.os }}
name: Linux-${{ matrix.bundle-arch }} artefacts, for Flatpak
strategy:
matrix:
include:
- os: ubuntu-24.04
arch: x64
bundle-arch: x86_64
suffix:
- os: ubuntu-24.04-arm
arch: arm64
bundle-arch: aarch64
suffix:
- os: ubuntu-22.04
arch: x64
bundle-arch: x86_64
suffix: -jammy
steps:
- name: Clone repository
uses: actions/checkout@v4
- run: |
echo "$GITHUB_WORKSPACE/.flutter/bin/" >> "$GITHUB_PATH"
- run: |
sudo apt update -y
sudo apt-get autopurge snapd
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt install -y ninja-build libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
git submodule init
git submodule update
flutter channel stable --disable-analytics
flutter doctor --verbose
flutter pub get
flutter build linux --release
mv build/linux/${{ matrix.arch }}/release/bundle ./oav-bundle-linux-${{ matrix.bundle-arch }}
tar czf oav-bundle-linux-${{ matrix.bundle-arch }}.tar.gz oav-bundle-linux-${{ matrix.bundle-arch }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
oav-bundle-linux-${{ matrix.bundle-arch }}${{ matrix.suffix }}.tar.gz