Skip to content

Commit 33f1bcb

Browse files
fix linux artifacts
1 parent 8ff15e6 commit 33f1bcb

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/create_binaries.yml renamed to .github/workflows/create_artifacts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
with:
4545
channel: 'master'
4646
- name: Enable desktop support
47-
run: flutter config --enable-linux-desktop
47+
run: |
48+
flutter config --enable-linux-desktop
49+
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
4850
- name: Build Linux app
4951
run: flutter build linux
5052
- name: Create artifact

.github/workflows/create_release_binaries.yml renamed to .github/workflows/create_releases.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install Flutter
1515
uses: subosito/flutter-action@v1.5.3
1616
with:
17-
flutter-version: '2.2.2'
17+
channel: 'master'
1818
- name: Enable desktop support
1919
run: flutter config --enable-windows-desktop
2020
- name: Build Windows app
@@ -29,10 +29,35 @@ jobs:
2929
uses: papeloto/action-zip@v1
3030
with:
3131
files: ./build/windows/runner/Release/
32-
dest: ./Windows.zip
32+
dest: ./windows.zip
3333
- name: Upload as asset
3434
uses: AButler/upload-release-assets@v2.0
3535
with:
36-
files: './Windows.zip'
36+
files: './windows.zip'
3737
repo-token: ${{ secrets.GITHUB_TOKEN }}
3838

39+
build_linux:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Check out repository
43+
uses: actions/checkout@v2.3.4
44+
- name: Install Flutter
45+
uses: subosito/flutter-action@v1.5.3
46+
with:
47+
channel: 'master'
48+
- name: Enable desktop support
49+
run: |
50+
flutter config --enable-linux-desktop
51+
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
52+
- name: Build Linux app
53+
run: flutter build linux
54+
- name: Create zip
55+
uses: papeloto/action-zip@v1
56+
with:
57+
files: ./build/linux/x64/release/bundle/
58+
dest: ./linux.zip
59+
- name: Upload as asset
60+
uses: AButler/upload-release-assets@v2.0
61+
with:
62+
files: './linux.zip'
63+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)