-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (33 loc) · 1.02 KB
/
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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: sudo apt-get update -y
- run: sudo apt-get install -y ninja-build libgtk-3-dev libkeybinder-3.0-0 libkeybinder-3.0-dev rpm mesa-utils
- run: flutter config --enable-linux-desktop
- run: bash build-deb.sh
- name: Upload deb
uses: actions/upload-artifact@v1
with:
name: linux-assistant-deb
path: linux-assistant.deb
- run: bash build-rpm.sh
- name: Upload rpm
uses: actions/upload-artifact@v1
with:
name: linux-assistant-rpm
path: /home/runner/rpmbuild/RPMS/x86_64/