forked from ElXreno/escl-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 903 Bytes
/
rust.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
name: Rust
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable, nightly]
steps:
- name: Set up a Rust toolchain
uses: hecrj/[email protected]
with:
rust-version: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libavahi-client-dev
- name: Build release
run: cargo build --release --verbose
- name: Strip release
run: strip target/release/escl-scan-cli
- name: Run tests
run: cargo test --verbose
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: escl-scan-cli_rust-${{ matrix.rust }}-${{ matrix.os }}
path: target/release/escl-scan-cli