-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1021 Bytes
/
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
name: ci
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test_spec:
name: Test specification
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v1.2.1
- name: Configure toolchain
uses: actions-rs/toolchain@v1
with:
# temporarily pinned to 2021-11-01 for broken deps
toolchain: nightly-2021-11-01
target: ${{ matrix.target }}
override: true
components: rustfmt, clippy
- name: Configure caching
uses: actions/cache@v2
with:
key: rt-${{ matrix.os }}-${{ matrix.target }}
path: |
${{ env.HOME }}/.cargo
target/${{ matrix.target }}
- name: Test rust WITX build
run: |
cargo test