-
Notifications
You must be signed in to change notification settings - Fork 14
77 lines (76 loc) · 2.08 KB
/
Copy pathci.yml
File metadata and controls
77 lines (76 loc) · 2.08 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build
on:
push:
branches:
- "*"
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: "1.90"
override: true
components: rustfmt, llvm-tools-preview
- name: build
run: |
cargo check --no-default-features
cargo check --all-features
- name: test
run: |
# TODO: switch this to a published version after the next release
cargo install --git https://github.com/rust-embedded/cargo-binutils/ --rev 7fc23414305df173dc46a5fa4b98ab2bcd3d21e1
cargo test --all-features
- name: check formatting
run: cargo fmt -- --check
windows:
runs-on: windows-latest
strategy:
matrix:
target:
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: "1.90"
override: true
components: llvm-tools-preview
- name: test
run: |
cargo install cargo-binutils@0.3.6
# NOTE: only tests default features
cargo test
mac:
runs-on: macos-latest
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: "1.90"
override: true
components: llvm-tools-preview
- name: test
run: |
cargo install cargo-binutils@0.3.6
# NOTE: only tests default features
cargo test
# we run the nightly test here to distribute CPU time away from the linux runner
# we only run `profdata` because some ignored tests in `cov` fail
cargo test --test profdata -- --ignored