-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.28 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
---
name: build_linux
permissions:
contents: write
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
jobs:
main:
runs-on: ${{ matrix.os }}
name: Ubuntu-${{ matrix.os-name }}-${{ matrix.flutter-arch }} artefacts
strategy:
matrix:
include:
- os: ubuntu-24.04
os-name: noble
flutter-arch: x64
dep-depends: libgtk-3-0t64 (>= 3.24.41)
- os: ubuntu-24.04-arm
os-name: noble
flutter-arch: arm64
dep-depends: libgtk-3-0t64 (>= 3.24.41)
- os: ubuntu-22.04
os-name: jammy
flutter-arch: x64
dep-depends: libgtk-3-0 (>= 3.24.33)
steps:
- name: Clone repository
uses: actions/checkout@v4
- run: |
sudo apt update -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
- run: |
sudo apt install -y ninja-build libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev
- run: |
./linux/oav-custom/compile "${{ matrix.os-name }}" "${{ matrix.flutter-arch }}" "${{ matrix.deb-depends }}"
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
*.tar.gz
*.deb