-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (26 loc) · 842 Bytes
/
rust.yml
File metadata and controls
34 lines (26 loc) · 842 Bytes
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
name: Linux Release Build
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
release-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Install packages
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt update && sudo apt install musl-dev musl-tools
- name: Build
run: |
cargo build --release --verbose --target-dir /home/runner/work/hwapi/hwapi/final_build --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: linux-build
path: /home/runner/work/hwapi/hwapi/final_build/${{ matrix.target }}/release/hwapi