1313 pull_request :
1414
1515env :
16- RUST_TOOLCHAIN_VERSION : " 1.68.2 "
16+ RUST_TOOLCHAIN_VERSION : " 1.76.0 "
1717 CARGO_TERM_COLOR : always
1818 CARGO_INCREMENTAL : ' 0'
1919 CARGO_PROFILE_DEV_DEBUG : ' 0'
@@ -33,19 +33,21 @@ jobs:
3333 RUSTC_BOOTSTRAP : 1
3434 steps :
3535 - name : Install host dependencies
36- run : |
37- sudo apt-get update
38- sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
39- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
36+ uses : awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1
37+ with :
38+ packages : protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
39+ version : 1.0
40+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4041 with :
4142 submodules : recursive
42- - uses : dtolnay/rust-toolchain@master
43+ - uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
4344 with :
4445 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
45- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
46+ - uses : Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
4647 with :
4748 key : udeps
48- - run : cargo install cargo-udeps
49+ cache-all-crates : " true"
50+ - uses : stackabletech/cargo-install-action@cargo-udeps
4951 - run : cargo udeps --workspace
5052
5153 run_cargodeny :
@@ -61,21 +63,21 @@ jobs:
6163 continue-on-error : ${{ matrix.checks == 'advisories' }}
6264
6365 steps :
64- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
66+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6567 with :
6668 submodules : recursive
67- - uses : EmbarkStudios/cargo-deny-action@8a8607bd8e2b3a514d5a40174cc7c55b229d9ba7 # v1.4.0
69+ - uses : EmbarkStudios/cargo-deny-action@1e59595bed8fc55c969333d08d7817b36888f0c5 # v1.5.5
6870 with :
6971 command : check ${{ matrix.checks }}
7072
7173 run_rustfmt :
7274 name : Run Rustfmt
7375 runs-on : ubuntu-latest
7476 steps :
75- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
77+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7678 with :
7779 submodules : recursive
78- - uses : dtolnay/rust-toolchain@master
80+ - uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
7981 with :
8082 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
8183 components : rustfmt
@@ -86,68 +88,76 @@ jobs:
8688 runs-on : ubuntu-latest
8789 steps :
8890 - name : Install host dependencies
89- run : |
90- sudo apt-get update
91- sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
92- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
91+ uses : awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1
92+ with :
93+ packages : protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
94+ version : 1.0
95+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9396 with :
9497 submodules : recursive
95- - uses : dtolnay/rust-toolchain@1.68.2
98+ - uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
9699 with :
97100 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
98101 components : clippy
99- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
102+ - uses : Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
100103 with :
101104 key : clippy
105+ cache-all-crates : " true"
102106 - name : Run clippy action to produce annotations
107+ uses : giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1
103108 env :
104109 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105- uses : actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # renovate: tag=v1.0.7
106110 if : env.GITHUB_TOKEN != null
107111 with :
108- args : --all-targets -- -D warnings
109- token : ${{ secrets.GITHUB_TOKEN }}
112+ clippy_flags : --all-targets -- -D warnings
113+ reporter : ' github-pr-review'
114+ github_token : ${{ secrets.GITHUB_TOKEN }}
110115 - name : Run clippy manually without annotations
111116 env :
112117 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113118 if : env.GITHUB_TOKEN == null
114- run : cargo clippy --all-targets -- -D warnings
119+ run : cargo clippy --color never -q -- all-targets -- -D warnings
115120
116121 run_rustdoc :
117122 name : Run RustDoc
118123 runs-on : ubuntu-latest
119124 steps :
120125 - name : Install host dependencies
121- run : |
122- sudo apt-get update
123- sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
124- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
126+ uses : awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1
127+ with :
128+ packages : protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
129+ version : 1.0
130+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
131+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125132 with :
126133 submodules : recursive
127- - uses : dtolnay/rust-toolchain@master
134+ - uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
128135 with :
129136 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
130137 components : rustfmt
131- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
138+ - uses : Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
132139 with :
133140 key : doc
141+ cache-all-crates : " true"
134142 - run : cargo doc --document-private-items
135143
136144 run_tests :
137145 name : Run Cargo Tests
138146 runs-on : ubuntu-latest
139147 steps :
140148 - name : Install host dependencies
141- run : |
142- sudo apt-get update
143- sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
144- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
149+ uses : awalsh128/cache-apt-pkgs-action@44c33b32f808cdddd5ac0366d70595ed63661ed8 # v1.3.1
150+ with :
151+ packages : protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
152+ version : 1.0
153+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
145154 with :
146155 submodules : recursive
147- - uses : dtolnay/rust-toolchain@master
156+ - uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
148157 with :
149158 toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
150- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
159+ - uses : Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
151160 with :
152161 key : test
162+ cache-all-crates : " true"
153163 - run : cargo test
0 commit comments