forked from MeadowlarkDAW/creek
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.08 KB
/
ci.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
52
53
54
name: Rust CI
on:
pull_request:
push:
branches:
- master
- staging
- trying
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Build and test
strategy:
matrix:
include:
# Currently used Rust version, same as in `rust-toolchain` file.
- os: ubuntu-latest
rust: 1.60.0
# Minimum Supported Rust Version = 1.56.0
#
- os: ubuntu-latest
rust: 1.56.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install alsa
run: sudo apt install alsa alsa-lib
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v1
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples --tests --features decode-all
- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all