-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (34 loc) · 979 Bytes
/
tests.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
on:
push:
branches:
- main
pull_request:
name: Tests
jobs:
test:
name: ${{matrix.rust}} on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
rust: [1.70.0, stable]
os: [ubuntu-20.04]
env:
RUSTFLAGS: ''
CARGO_PROFILE_DEV_DEBUG: '0' # reduce size of target directory
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Toolchain
run: rustup default ${{matrix.rust}}
- name: Cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
- name: Build
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: build
args: --release --all-targets
- name: Test
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: test
args: --release