-
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (38 loc) · 1.09 KB
/
build_linux.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
51
name: Build Linux
on:
workflow_dispatch
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-18.04
env:
PROJECT_NAME: ${{ github.event.repository.name }}
steps:
- uses: actions/checkout@v2
- name: Install Requirements
run: |
export DEBIAN_FRONTED=noninteractive
sudo apt-get -qq update
sudo apt-get install -y libxkbcommon-dev
sudo apt-get install -y libasound2-dev
- name: Install LinuxDeploy
uses: miurahr/install-linuxdeploy-action@v1
with:
plugins: appimage
- name: Install cargo-deb
run: cargo install cargo-deb
- name: Build AppImage
run: ./build-linux-appimage.sh
- name: Archive AppImage
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECT_NAME }}-x86_64.AppImage
path: target/release/appimage/*.AppImage
- name: Pack .deb package
run: cargo deb --no-build
- name: Archive .deb package
uses: actions/upload-artifact@v2
with:
name: ${{ env.PROJECT_NAME }}-x86_64.deb
path: target/debian/*.deb