-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.21 KB
/
linux-x86.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
name: "Linux x86_64"
on:
push:
tags: ['v*']
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 25
steps:
- name: "Code Checkout"
uses: actions/checkout@v3
- name: "Java Setup"
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: "Install Missing Packages"
run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev
- name: "Flutter Action"
uses: subosito/[email protected]
with:
flutter-version: '3.16.9'
channel: 'stable'
- name: "Flutter: Doctor"
run: flutter doctor
- name: "Flutter: Get Packages"
run: flutter pub get
- name: "Linux: Build for Linux"
run: flutter build linux
- name: "Linux: Tar Linux package"
run: tar -C build/linux/x64/release/bundle -czf dateapp-linux-x64.tar.gz .
- name: Release to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: "dateapp-linux-x64.tar.gz"
tag: ${{ steps.version.outputs.content }}
commit: ${{ github.sha }}
allowUpdates: true