Add Linux workflow

This commit is contained in:
2023-11-26 15:25:37 +08:00
parent 9810214903
commit 1f9ffc93d1
4 changed files with 34 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.github/workflows/linux.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'ios/**'

31
.github/workflows/linux.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Linux Build
on:
push:
branches: ["*"]
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'android/**'
- 'ios/**'
- 'macos/**'
- 'web/**'
- 'windows/**'
- '.gitignore'
- '.gitmodules'
- 'README.md'
- 'LICENSE'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev liblzma-dev libstdc++-12-dev ninja-build
- name: Build
run: flutter build linux --release

View File

@@ -4,6 +4,7 @@ on:
branches: ["*"]
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/windows.yml'
- 'android/**'
- 'ios/**'

View File

@@ -4,6 +4,7 @@ on:
branches: ["*"]
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/web.yml'
- 'android/**'
- 'ios/**'