1717 CARGO_TERM_COLOR : always
1818 CARGO_INCREMENTAL : ' 0'
1919 CARGO_PROFILE_DEV_DEBUG : ' 0'
20- RUST_TOOLCHAIN_VERSION : " 1.80.1 "
20+ RUST_TOOLCHAIN_VERSION : " 1.87.0 "
2121 RUSTFLAGS : " -D warnings"
2222 RUSTDOCFLAGS : " -D warnings"
2323 RUST_LOG : " info"
2424
25+ permissions : {}
26+
2527jobs :
2628 # Identify unused dependencies
2729 run_udeps :
@@ -30,14 +32,16 @@ jobs:
3032 env :
3133 RUSTC_BOOTSTRAP : 1
3234 steps :
33- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
35+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+ with :
37+ persist-credentials : false
3438 - uses : dtolnay/rust-toolchain@master
3539 with :
3640 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
37- - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
41+ - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
3842 with :
3943 key : udeps
40- - run : cargo install --locked cargo-udeps@0.1.50
44+ - run : cargo install --locked cargo-udeps@0.1.57
4145 - run : cargo udeps --all-targets --all-features
4246
4347 run_cargodeny :
@@ -53,96 +57,50 @@ jobs:
5357 continue-on-error : ${{ matrix.checks == 'advisories' }}
5458
5559 steps :
56- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
57- - uses : EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # v1.6.3
58- with :
59- command : check ${{ matrix.checks }}
60-
61- run_rustfmt :
62- name : Run Rustfmt
63- runs-on : ubuntu-latest
64- steps :
65- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
66- - uses : dtolnay/rust-toolchain@master
67- with :
68- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
69- components : rustfmt
70- - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
71- with :
72- key : fmt
73- - run : cargo fmt --all -- --check
74-
75- run_clippy :
76- name : Run Clippy
77- runs-on : ubuntu-latest
78- steps :
79- - name : Install host dependencies
80- run : |
81- sudo apt-get update
82- sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
83- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
60+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8461 with :
85- submodules : recursive
86- - uses : dtolnay/rust-toolchain@master
62+ persist-credentials : false
63+ - uses : EmbarkStudios/cargo-deny-action@30f817c6f72275c6d54dc744fbca09ebc958599f # v2.0.12
8764 with :
88- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
89- components : clippy
90- - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
91- with :
92- key : clippy
93- - name : Run clippy action to produce annotations
94- # NOTE (@Techassi): This action might get a new release sonn, because it
95- # currently uses Node 16, which is deprecated in the next few months by
96- # GitHub. See https://github.com/giraffate/clippy-action/pull/87
97- uses : giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1
98- env :
99- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100- if : env.GITHUB_TOKEN != null && github.event.pull_request.draft == false
101- with :
102- clippy_flags : --all-targets -- -D warnings
103- reporter : ' github-pr-review'
104- github_token : ${{ secrets.GITHUB_TOKEN }}
105- - name : Run clippy manually without annotations
106- env :
107- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108- if : env.GITHUB_TOKEN == null
109- run : cargo clippy --color never -q --all-targets -- -D warnings
65+ command : check ${{ matrix.checks }}
11066
11167 run_rustdoc :
11268 name : Run RustDoc
11369 runs-on : ubuntu-latest
11470 steps :
115- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
71+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
72+ with :
73+ persist-credentials : false
11674 - uses : dtolnay/rust-toolchain@master
11775 with :
11876 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
11977 components : rustfmt
120- - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
78+ - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
12179 with :
12280 key : doc
12381 - run : cargo doc --document-private-items
12482
12583 run_tests :
12684 name : Run Cargo Tests
12785 needs :
128- - run_cargodeny
129- - run_clippy
130- - run_rustfmt
13186 - run_rustdoc
13287 runs-on : ubuntu-latest
13388 steps :
134- - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
89+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
90+ with :
91+ persist-credentials : false
13592 - uses : dtolnay/rust-toolchain@master
13693 with :
13794 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
13895 # rust-src is required for trybuild stderr output comparison to work
13996 # for our cases.
14097 # See: https://github.com/dtolnay/trybuild/issues/236#issuecomment-1620950759
14198 components : rust-src
142- - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
99+ - uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
143100 with :
144101 key : test
145- - run : cargo test --all-features
102+ - run : cargo test --no-default-features --workspace
103+ - run : cargo test --all-features --workspace
146104
147105 tests_passed :
148106 name : All tests passed
0 commit comments