-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.02 KB
/
ci.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
name: Continuous integration
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
container: opensuse/tumbleweed
strategy:
fail-fast: false
matrix:
toolchain:
- distribution
- stable
- beta
- nightly
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install the ${{ matrix.toolchain }} Rust toolchain
shell: bash
run: |
if [ ${{ matrix.toolchain }} == distribution ]; then
zypper --non-interactive install cargo rust
else
zypper --non-interactive install rustup
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
fi
- name: Build the project
run: cargo build
- name: Run tests
run: cargo test
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps