1212 # Deny warnings in CI
1313 RUSTFLAGS : " -D warnings"
1414 # The Nightly version used for cargo-udeps, might need updating from time to time.
15- PINNED_NIGHTLY : nightly-2022-11-08
16- # The version of cargo-udeps to use, might need updating from time to time .
17- CARGO_UDEPS_VERSION : 0.1.35
15+ PINNED_NIGHTLY : nightly-2022-12-15
16+ # Prevent Github API rate limiting .
17+ LIGHTHOUSE_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1818jobs :
1919 target-branch-check :
2020 name : target-branch-check
5353 - name : Get latest version of stable Rust
5454 run : rustup update stable
5555 - name : Install Protoc
56- uses : arduino/setup-protoc@v1
56+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
5757 with :
5858 repo-token : ${{ secrets.GITHUB_TOKEN }}
5959 - name : Install ganache
9797 - name : Get latest version of stable Rust
9898 run : rustup update stable
9999 - name : Install Protoc
100- uses : arduino/setup-protoc@v1
100+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
101101 with :
102102 repo-token : ${{ secrets.GITHUB_TOKEN }}
103103 - name : Run beacon_chain tests for all known forks
@@ -111,7 +111,7 @@ jobs:
111111 - name : Get latest version of stable Rust
112112 run : rustup update stable
113113 - name : Install Protoc
114- uses : arduino/setup-protoc@v1
114+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
115115 with :
116116 repo-token : ${{ secrets.GITHUB_TOKEN }}
117117 - name : Run operation_pool tests for all known forks
@@ -135,7 +135,7 @@ jobs:
135135 - name : Get latest version of stable Rust
136136 run : rustup update stable
137137 - name : Install Protoc
138- uses : arduino/setup-protoc@v1
138+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
139139 with :
140140 repo-token : ${{ secrets.GITHUB_TOKEN }}
141141 - name : Install ganache
@@ -151,7 +151,7 @@ jobs:
151151 - name : Get latest version of stable Rust
152152 run : rustup update stable
153153 - name : Install Protoc
154- uses : arduino/setup-protoc@v1
154+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
155155 with :
156156 repo-token : ${{ secrets.GITHUB_TOKEN }}
157157 - name : Run state_transition_vectors in release.
@@ -165,7 +165,7 @@ jobs:
165165 - name : Get latest version of stable Rust
166166 run : rustup update stable
167167 - name : Install Protoc
168- uses : arduino/setup-protoc@v1
168+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
169169 with :
170170 repo-token : ${{ secrets.GITHUB_TOKEN }}
171171 - name : Run consensus-spec-tests with blst, milagro and fake_crypto
@@ -191,7 +191,7 @@ jobs:
191191 - name : Get latest version of stable Rust
192192 run : rustup update stable
193193 - name : Install Protoc
194- uses : arduino/setup-protoc@v1
194+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
195195 with :
196196 repo-token : ${{ secrets.GITHUB_TOKEN }}
197197 - name : Install ganache
@@ -207,7 +207,7 @@ jobs:
207207 - name : Get latest version of stable Rust
208208 run : rustup update stable
209209 - name : Install Protoc
210- uses : arduino/setup-protoc@v1
210+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
211211 with :
212212 repo-token : ${{ secrets.GITHUB_TOKEN }}
213213 - name : Install ganache
@@ -223,7 +223,7 @@ jobs:
223223 - name : Get latest version of stable Rust
224224 run : rustup update stable
225225 - name : Install Protoc
226- uses : arduino/setup-protoc@v1
226+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
227227 with :
228228 repo-token : ${{ secrets.GITHUB_TOKEN }}
229229 - name : Install ganache
@@ -239,7 +239,7 @@ jobs:
239239 - name : Get latest version of stable Rust
240240 run : rustup update stable
241241 - name : Install Protoc
242- uses : arduino/setup-protoc@v1
242+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
243243 with :
244244 repo-token : ${{ secrets.GITHUB_TOKEN }}
245245 - name : Install ganache
@@ -255,7 +255,7 @@ jobs:
255255 - name : Get latest version of stable Rust
256256 run : rustup update stable
257257 - name : Install Protoc
258- uses : arduino/setup-protoc@v1
258+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
259259 with :
260260 repo-token : ${{ secrets.GITHUB_TOKEN }}
261261 - name : Install ganache
@@ -287,7 +287,7 @@ jobs:
287287 - name : Get latest version of stable Rust
288288 run : rustup update stable
289289 - name : Install Protoc
290- uses : arduino/setup-protoc@v1
290+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
291291 with :
292292 repo-token : ${{ secrets.GITHUB_TOKEN }}
293293 - name : Run exec engine integration tests in release
@@ -301,7 +301,7 @@ jobs:
301301 - name : Get latest version of stable Rust
302302 run : rustup update stable
303303 - name : Install Protoc
304- uses : arduino/setup-protoc@v1
304+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
305305 with :
306306 repo-token : ${{ secrets.GITHUB_TOKEN }}
307307 - name : Typecheck benchmark code without running it
@@ -315,34 +315,13 @@ jobs:
315315 - name : Get latest version of stable Rust
316316 run : rustup update stable
317317 - name : Install Protoc
318- uses : arduino/setup-protoc@v1
318+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
319319 with :
320320 repo-token : ${{ secrets.GITHUB_TOKEN }}
321321 - name : Lint code for quality and style with Clippy
322322 run : make lint
323323 - name : Certify Cargo.lock freshness
324324 run : git diff --exit-code Cargo.lock
325- disallowed-from-async-lint :
326- name : disallowed-from-async-lint
327- runs-on : ubuntu-latest
328- needs : cargo-fmt
329- continue-on-error : true
330- steps :
331- - uses : actions/checkout@v3
332- - name : Install SigP Clippy fork
333- run : |
334- cd ..
335- git clone https://github.com/michaelsproul/rust-clippy.git
336- cd rust-clippy
337- git checkout 31a49666ccfcd7963b63345d6ce757c373f22c2a
338- cargo build --release --bin cargo-clippy --bin clippy-driver
339- cargo build --release --bin cargo-clippy --bin clippy-driver -Zunstable-options --out-dir $(rustc --print=sysroot)/bin
340- - name : Install Protoc
341- uses : arduino/setup-protoc@v1
342- with :
343- repo-token : ${{ secrets.GITHUB_TOKEN }}
344- - name : Run Clippy with the disallowed-from-async lint
345- run : make nightly-lint
346325 check-msrv :
347326 name : check-msrv
348327 runs-on : ubuntu-latest
@@ -352,7 +331,7 @@ jobs:
352331 - name : Install Rust @ MSRV (${{ needs.extract-msrv.outputs.MSRV }})
353332 run : rustup override set ${{ needs.extract-msrv.outputs.MSRV }}
354333 - name : Install Protoc
355- uses : arduino/setup-protoc@v1
334+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
356335 with :
357336 repo-token : ${{ secrets.GITHUB_TOKEN }}
358337 - name : Run cargo check
@@ -394,7 +373,7 @@ jobs:
394373 - name : Install Rust (${{ env.PINNED_NIGHTLY }})
395374 run : rustup toolchain install $PINNED_NIGHTLY
396375 - name : Install Protoc
397- uses : arduino/setup-protoc@v1
376+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
398377 with :
399378 repo-token : ${{ secrets.GITHUB_TOKEN }}
400379 - name : Install cargo-udeps
0 commit comments