-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (46 loc) · 1.26 KB
/
commit.yml
File metadata and controls
57 lines (46 loc) · 1.26 KB
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
52
53
54
55
56
57
name: Build Ascella
on:
pull_request:
push:
env:
BIN_NAME: ascella
PROJECT_NAME: ascella
REPO_NAME: Tricked-dev/ascella
jobs:
dist:
name: Dist
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: do funny apt install
run: sudo apt-get install libssl-dev pkg-config libxcb-composite0-dev libx11-dev
- name: Build release binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --locked
- name: Strip release binary (linux and macos)
run: strip "target/release/$BIN_NAME"
- name: make dist
run: mkdir dist
- name: Build archive
shell: bash
run: cp "target/release/$BIN_NAME" "dist/"
- name: Build archive
shell: bash
run: cp "target/release/ascella-desktop" "dist/"
- uses: actions/upload-artifact@v2.2.4
with:
name: ascella-x86_64-unknown-linux-gnu
path: dist