File tree Expand file tree Collapse file tree 2 files changed +32
-17
lines changed Expand file tree Collapse file tree 2 files changed +32
-17
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,14 @@ jobs:
29
29
- name : Check documentation
30
30
run : RUSTDOCFLAGS="-Dwarnings" cargo doc --document-private-items --no-deps
31
31
32
- build :
33
- name : Execute CI script
32
+ check :
33
+ name : Check
34
34
runs-on : ubuntu-latest
35
35
continue-on-error : true
36
36
strategy :
37
37
matrix :
38
38
target :
39
+ - x86_64-unknown-linux-gnu
39
40
- armv7-unknown-linux-gnueabi
40
41
- armv7-unknown-linux-gnueabihf
41
42
- arm-unknown-linux-gnueabi
52
53
toolchain :
53
54
- stable
54
55
- " 1.66.0" # MSRV
56
+ steps :
57
+ - uses : actions/checkout@v4
58
+ - name : Setup Rust toolchain
59
+ uses : actions-rs/toolchain@v1
60
+ with :
61
+ toolchain : ${{ matrix.toolchain }}
62
+ - name : Install Rust target
63
+ run : rustup target add ${{ matrix.target }}
64
+ - name : Check formatting
65
+ run : cargo fmt --all -- --check
66
+ - name : Check lints
67
+ run : cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
68
+ - name : Check source
69
+ run : cargo check --target ${{ matrix.target }} --workspace --all-targets
70
+ - name : Check all features source
71
+ run : cargo check --target ${{ matrix.target }} --all-features --workspace --all-targets
72
+
73
+ test :
74
+ name : Unit tests
75
+ runs-on : ubuntu-latest
76
+ continue-on-error : true
77
+ strategy :
78
+ matrix :
79
+ target :
80
+ - x86_64-unknown-linux-gnu
81
+ toolchain :
82
+ - stable
83
+ - " 1.66.0" # MSRV
55
84
steps :
56
85
- uses : actions/checkout@v4
57
86
- name : Setup Rust toolchain
Original file line number Diff line number Diff line change @@ -11,18 +11,4 @@ pushd cryptoki-sys
11
11
cargo build --features generate-bindings
12
12
popd
13
13
14
- # check formatting before going through all the builds
15
- if cargo fmt --version; then
16
- cargo fmt --all -- --check
17
- fi
18
- if cargo clippy --version; then
19
- cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
20
- fi
21
-
22
- cargo build
23
-
24
- cargo build --all-features
25
-
26
- cargo build --target " $TARGET "
27
-
28
- cargo test
14
+ cargo test --target " $TARGET "
You can’t perform that action at this time.
0 commit comments