-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (59 loc) · 1.62 KB
/
rust.yml
File metadata and controls
63 lines (59 loc) · 1.62 KB
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
60
61
62
63
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- runner: ubuntu-latest
features: ""
- runner: ubuntu-latest
features: "--no-default-features"
- runner: ubuntu-24.04-arm
features: ""
- runner: ubuntu-24.04-arm
features: "--no-default-features"
- runner: windows-latest
features: ""
- runner: windows-latest
features: "--no-default-features"
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Install deps
if: runner.os == 'Linux'
run: ./ci/install_deps.sh
- name: Format
run: cargo fmt --all -- --check
- name: Check
run: cargo check --all-features --all-targets
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose ${{ matrix.features }}
- name: Run basic dump creation test
if: runner.os == 'Linux'
run: ./ci/test.sh
miri:
name: "Miri"
strategy:
matrix:
features: ["", "--no-default-features"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Test with Miri
run: cargo miri test ${{ matrix.features }}