-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (48 loc) · 1.43 KB
/
build_linux.yml
File metadata and controls
50 lines (48 loc) · 1.43 KB
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
name: build_linux
on:
workflow_dispatch:
release:
types: [created]
push:
branches:
- master
# tags:
# - v*.*.*
jobs:
build_linux:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v3
with:
submodules: true
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
- run: |
sudo apt-get update -y
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libjsoncpp-dev libsecret-1-dev
- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Enable linux build
run: flutter config --enable-linux-desktop
- name: Build artifacts
run: flutter build linux --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: fterm-${{github.ref_name}}-linux.zip
directory: build/linux/x64/release/bundle
- name: Linux Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/linux/x64/release/bundle/fterm-${{github.ref_name}}-linux.zip