Debian Codegraph @

debian/rust-vendor/num-modular/.github/workflows/tests.yml

raw
1 on:
2 push:
3 branches:
4 - master
5 pull_request:
6 branches:
7 - master
8
9 name: Tests
10
11 jobs:
12 check:
13 name: Check
14 runs-on: ubuntu-latest
15 strategy:
16 matrix:
17 rust: [stable, 1.57]
18 steps:
19 - uses: actions/checkout@v2
20 - uses: actions-rs/toolchain@v1
21 with:
22 profile: minimal
23 toolchain: ${{ matrix.rust }}
24 override: true
25 - uses: actions-rs/cargo@v1
26 with:
27 command: check
28 args: --all-features
29
30 test:
31 name: Test
32 strategy:
33 matrix:
34 bits: [16, 32, 64]
35 runs-on: ubuntu-latest
36 env:
37 RUST_BACKTRACE: 1
38 RUSTFLAGS: -D warnings --cfg force_bits="${{ matrix.bits }}$"
39 steps:
40 - uses: actions/checkout@v2
41 - uses: actions-rs/toolchain@v1
42 with:
43 profile: minimal
44 toolchain: stable
45 override: true
46 - uses: actions-rs/cargo@v1
47 with:
48 command: test
49 args: --all-features
50
51 test-x86:
52 name: Test x86
53 runs-on: ubuntu-latest
54 env:
55 RUST_BACKTRACE: 1
56 RUSTFLAGS: -D warnings
57 steps:
58 - uses: actions/checkout@v2
59 - uses: actions-rs/toolchain@v1
60 with:
61 profile: minimal
62 toolchain: stable-i686-unknown-linux-gnu
63 override: true
64 - run: |
65 sudo apt update
66 sudo apt install gcc-multilib
67 - uses: actions-rs/cargo@v1
68 with:
69 command: test
70
71 test-x86_64:
72 name: Test x86_64
73 runs-on: ubuntu-latest
74 env:
75 RUST_BACKTRACE: 1
76 RUSTFLAGS: -D warnings
77 steps:
78 - uses: actions/checkout@v2
79 - uses: actions-rs/toolchain@v1
80 with:
81 profile: minimal
82 toolchain: stable-x86_64-unknown-linux-gnu
83 override: true
84 - uses: actions-rs/cargo@v1
85 with:
86 command: test
87
88 test-no-std:
89 name: Test no-std
90 runs-on: ubuntu-latest
91 env:
92 RUSTFLAGS: -D warnings
93 steps:
94 - uses: actions/checkout@v2
95 - uses: actions-rs/toolchain@v1
96 with:
97 profile: minimal
98 toolchain: stable
99 override: true
100 - uses: actions-rs/cargo@v1
101 with:
102 command: test
103 args: --no-default-features
104
105 build-aarch64:
106 name: Build aarch64
107 runs-on: ubuntu-latest
108 env:
109 RUSTFLAGS: -D warnings
110 steps:
111 - uses: actions/checkout@v2
112 - uses: actions-rs/toolchain@v1
113 with:
114 profile: minimal
115 toolchain: stable
116 target: aarch64-unknown-linux-gnu
117 override: true
118 - uses: actions-rs/cargo@v1
119 with:
120 command: build
121 args: --target aarch64-unknown-linux-gnu --all-features --workspace --exclude benchmark
122
123 build-benchmark:
124 name: Build benchmark
125 runs-on: ubuntu-latest
126 env:
127 RUSTFLAGS: -D warnings
128 steps:
129 - uses: actions/checkout@v2
130 - uses: actions-rs/toolchain@v1
131 with:
132 profile: minimal
133 toolchain: stable
134 override: true
135 - uses: actions-rs/cargo@v1
136 with:
137 command: build
138 args: -p num-modular-bench
139
140 fmt:
141 name: Rustfmt
142 runs-on: ubuntu-latest
143 steps:
144 - uses: actions/checkout@v2
145 - uses: actions-rs/toolchain@v1
146 with:
147 profile: minimal
148 toolchain: stable
149 override: true
150 components: rustfmt
151 - uses: actions-rs/cargo@v1
152 with:
153 command: fmt
154 args: --all -- --check
155
156 clippy:
157 name: Clippy
158 runs-on: ubuntu-latest
159 steps:
160 - uses: actions/checkout@v2
161 - uses: actions-rs/toolchain@v1
162 with:
163 profile: minimal
164 toolchain: stable
165 override: true
166 components: clippy
167 - uses: actions-rs/cargo@v1
168 with:
169 command: clippy
170 args: --all-features --all-targets -- -D warnings