Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 on:
2 push:
3 branches: [master]
4 pull_request:
5 branches: [master]
6
7 name: Continuous integration
8
9 jobs:
10 test :
11 name: Test Suite
12 strategy:
13 matrix:
14 target:
15 # Linux
16 - x86_64-unknown-linux-gnu
17 - aarch64-unknown-linux-gnu
18 - armv7-unknown-linux-gnueabihf
19 - i686-unknown-linux-gnu
20 - mips-unknown-linux-gnu
21 - mips64-unknown-linux-gnuabi64
22 - mips64el-unknown-linux-gnuabi64
23 - mipsel-unknown-linux-gnu
24 - powerpc-unknown-linux-gnu
25 - powerpc64-unknown-linux-gnu
26 - powerpc64le-unknown-linux-gnu
27 - riscv64gc-unknown-linux-gnu
28
29 # *BSD
30 - x86_64-unknown-freebsd
31 os:
32 - ubuntu-latest
33
34 include:
35 # macOS
36 - target: x86_64-apple-darwin
37 os: macOS-latest
38
39 runs-on: ${{ matrix.os }}
40
41 steps:
42 - uses: actions/checkout@v2
43 - uses: actions-rs/toolchain@v1
44 with:
45 profile: minimal
46 # asm! is stable and llvm_asm! still exists
47 toolchain: nightly-2022-01-14
48 target: ${{ matrix.target }}
49 override: true
50
51 # omit tests on BSD
52 - uses: actions-rs/cargo@v1
53 if: matrix.target == 'x86_64-unknown-freebsd'
54 with:
55 use-cross: true
56 command: check
57 args: --target ${{ matrix.target }}
58
59 - uses: actions-rs/cargo@v1
60 if: matrix.target != 'x86_64-unknown-freebsd'
61 with:
62 use-cross: true
63 command: test
64 args: --target ${{ matrix.target }}
65 - uses: actions-rs/cargo@v1
66 if: matrix.target != 'x86_64-unknown-freebsd'
67 with:
68 use-cross: true
69 command: run
70 args: --target ${{ matrix.target }} --release --example hello
71 - uses: actions-rs/cargo@v1
72 if: matrix.target != 'x86_64-unknown-freebsd'
73 with:
74 use-cross: true
75 command: test
76 args: --target ${{ matrix.target }} --release