-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (77 loc) · 2.01 KB
/
rust.yml
File metadata and controls
87 lines (77 loc) · 2.01 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Rust
on: [push, pull_request, workflow_dispatch]
env:
CARGO_TERM_COLOR: always
jobs:
build-default-features:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: build
run: cargo build --verbose
build-no-features:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: build --no-default-features
run: cargo build --no-default-features --verbose
build-all-features:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: build --all-features
run: cargo build --all-features --verbose
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: test
run: cargo test --all-features --verbose --no-fail-fast
test-release:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: test --release
run: cargo test --release --all-features --verbose --no-fail-fast
miri:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- name: install miri
run: rustup +nightly component add miri
- name: miri test
run: cargo +nightly miri test --all-features --verbose --no-fail-fast
clippy:
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: clippy
run: cargo clippy --all-features -- -Dwarnings
rustfmt:
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: rustfmt
run: cargo fmt --check
package:
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- name: package --list
run: cargo package --list -p slimvec
- name: package
run: cargo package -p slimvec
- name: publish --dry-run
run: cargo publish --dry-run -p slimvec