Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Tests
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 runs-on: ${{ matrix.os }}
8 strategy:
9 fail-fast: true
10 matrix:
11 include:
12 - os: ubuntu-latest
13 target: x86_64-unknown-linux-gnu
14 toolchain: stable
15 - os: macos-latest
16 target: x86_64-apple-darwin
17 toolchain: stable
18 - os: windows-latest
19 target: x86_64-pc-windows-gnu
20 toolchain: stable
21 - os: windows-latest
22 target: x86_64-pc-windows-msvc
23 toolchain: beta
24 - os: ubuntu-latest
25 target: x86_64-unknown-linux-gnu
26 toolchain: 1.36.0 # MSRV
27 - os: ubuntu-latest
28 deps: sudo apt update ; sudo apt install gcc-multilib
29 target: i686-unknown-linux-gnu
30 toolchain: nightly
31
32 steps:
33 - uses: actions/checkout@v2
34 - name: Install toolchain
35 uses: actions-rs/toolchain@v1
36 with:
37 profile: minimal
38 target: ${{ matrix.target }}
39 toolchain: ${{ matrix.toolchain }}
40 override: true
41 - run: ${{ matrix.deps }}
42 - name: Test itoap
43 run: |
44 cargo test --no-default-features
45 cargo test --no-default-features --features std
46 cargo test --no-default-features --all-features
47
48 test-miri:
49 runs-on: ubuntu-latest
50 steps:
51 - uses: actions/checkout@v2
52 - name: Install toolchain
53 run: |
54 MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
55 rustup default "$MIRI_NIGHTLY"
56 rustup component add miri
57 - name: Test itoap
58 run: |
59 cargo miri test --no-default-features
60 cargo miri test --no-default-features --features std
61 cargo miri test --no-default-features --all-features
62
63 test-cross:
64 runs-on: ubuntu-latest
65 strategy:
66 fail-fast: true
67 matrix:
68 target:
69 - aarch64-unknown-linux-gnu
70 - armv7-unknown-linux-gnueabihf
71 - powerpc-unknown-linux-gnu
72 - riscv64gc-unknown-linux-gnu
73 - mips-unknown-linux-gnu # 32-bit big endian
74 - mipsel-unknown-linux-musl # 32-bit little endian
75 - mips64-unknown-linux-gnuabi64 # 64-bit big endian
76 - mips64el-unknown-linux-gnuabi64 # 64-bit little endian
77 steps:
78 - uses: actions/checkout@v2
79 - name: Install toolchain
80 uses: actions-rs/toolchain@v1
81 with:
82 profile: minimal
83 toolchain: stable
84 override: true
85 - name: Cross test
86 uses: actions-rs/cargo@v1
87 with:
88 command: test
89 args: --no-default-features --target ${{ matrix.target }}
90 use-cross: true