-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.64 KB
/
ci.yaml
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
on:
push:
branches:
- master
tags:
- "*"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy, rustfmt"
- uses: Swatinem/rust-cache@v2
# make sure all code has been formatted with rustfmt
- run: cargo fmt -- --check --color always
# run clippy to verify we have no warnings
- run: cargo clippy --all-features --all-targets -- -D warnings
cargo-deny:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
test_debug:
name: Test (Debug)
strategy:
matrix:
include:
- os: ubuntu-24.04
target: x86_64-unknown-linux-gnu
# TODO: re-enable later when tests are working
#- os: ubuntu-24.04
#target: aarch64-unknown-linux-gnu
#container: ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- run: cargo fetch --target ${{ matrix.target }}
- name: test - no features
run: cargo nextest run --workspace
- name: test - all features
run: cargo nextest run --all-features --workspace