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-05-20
15+ PINNED_NIGHTLY : nightly-2022-12-15
16+ # Prevent Github API rate limiting.
17+ LIGHTHOUSE_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1618jobs :
1719 target-branch-check :
1820 name : target-branch-check
5153 - name : Get latest version of stable Rust
5254 run : rustup update stable
5355 - name : Install Protoc
54- uses : arduino/setup-protoc@v1
56+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
5557 with :
5658 repo-token : ${{ secrets.GITHUB_TOKEN }}
5759 - name : Install ganache
9597 - name : Get latest version of stable Rust
9698 run : rustup update stable
9799 - name : Install Protoc
98- uses : arduino/setup-protoc@v1
100+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
99101 with :
100102 repo-token : ${{ secrets.GITHUB_TOKEN }}
101103 - name : Run beacon_chain tests for all known forks
@@ -109,7 +111,7 @@ jobs:
109111 - name : Get latest version of stable Rust
110112 run : rustup update stable
111113 - name : Install Protoc
112- uses : arduino/setup-protoc@v1
114+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
113115 with :
114116 repo-token : ${{ secrets.GITHUB_TOKEN }}
115117 - name : Run operation_pool tests for all known forks
@@ -133,7 +135,7 @@ jobs:
133135 - name : Get latest version of stable Rust
134136 run : rustup update stable
135137 - name : Install Protoc
136- uses : arduino/setup-protoc@v1
138+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
137139 with :
138140 repo-token : ${{ secrets.GITHUB_TOKEN }}
139141 - name : Install ganache
@@ -149,7 +151,7 @@ jobs:
149151 - name : Get latest version of stable Rust
150152 run : rustup update stable
151153 - name : Install Protoc
152- uses : arduino/setup-protoc@v1
154+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
153155 with :
154156 repo-token : ${{ secrets.GITHUB_TOKEN }}
155157 - name : Run state_transition_vectors in release.
@@ -163,7 +165,7 @@ jobs:
163165 - name : Get latest version of stable Rust
164166 run : rustup update stable
165167 - name : Install Protoc
166- uses : arduino/setup-protoc@v1
168+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
167169 with :
168170 repo-token : ${{ secrets.GITHUB_TOKEN }}
169171 - name : Run consensus-spec-tests with blst, milagro and fake_crypto
@@ -189,7 +191,7 @@ jobs:
189191 - name : Get latest version of stable Rust
190192 run : rustup update stable
191193 - name : Install Protoc
192- uses : arduino/setup-protoc@v1
194+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
193195 with :
194196 repo-token : ${{ secrets.GITHUB_TOKEN }}
195197 - name : Install ganache
@@ -205,7 +207,7 @@ jobs:
205207 - name : Get latest version of stable Rust
206208 run : rustup update stable
207209 - name : Install Protoc
208- uses : arduino/setup-protoc@v1
210+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
209211 with :
210212 repo-token : ${{ secrets.GITHUB_TOKEN }}
211213 - name : Install ganache
@@ -221,7 +223,7 @@ jobs:
221223 - name : Get latest version of stable Rust
222224 run : rustup update stable
223225 - name : Install Protoc
224- uses : arduino/setup-protoc@v1
226+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
225227 with :
226228 repo-token : ${{ secrets.GITHUB_TOKEN }}
227229 - name : Install ganache
@@ -237,7 +239,7 @@ jobs:
237239 - name : Get latest version of stable Rust
238240 run : rustup update stable
239241 - name : Install Protoc
240- uses : arduino/setup-protoc@v1
242+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
241243 with :
242244 repo-token : ${{ secrets.GITHUB_TOKEN }}
243245 - name : Install ganache
@@ -253,7 +255,7 @@ jobs:
253255 - name : Get latest version of stable Rust
254256 run : rustup update stable
255257 - name : Install Protoc
256- uses : arduino/setup-protoc@v1
258+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
257259 with :
258260 repo-token : ${{ secrets.GITHUB_TOKEN }}
259261 - name : Install ganache
@@ -285,7 +287,7 @@ jobs:
285287 - name : Get latest version of stable Rust
286288 run : rustup update stable
287289 - name : Install Protoc
288- uses : arduino/setup-protoc@v1
290+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
289291 with :
290292 repo-token : ${{ secrets.GITHUB_TOKEN }}
291293 - name : Run exec engine integration tests in release
@@ -299,7 +301,7 @@ jobs:
299301 - name : Get latest version of stable Rust
300302 run : rustup update stable
301303 - name : Install Protoc
302- uses : arduino/setup-protoc@v1
304+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
303305 with :
304306 repo-token : ${{ secrets.GITHUB_TOKEN }}
305307 - name : Typecheck benchmark code without running it
@@ -323,34 +325,13 @@ jobs:
323325 - name : Get latest version of stable Rust
324326 run : rustup update stable
325327 - name : Install Protoc
326- uses : arduino/setup-protoc@v1
328+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
327329 with :
328330 repo-token : ${{ secrets.GITHUB_TOKEN }}
329331 - name : Lint code for quality and style with Clippy
330332 run : make lint
331333 - name : Certify Cargo.lock freshness
332334 run : git diff --exit-code Cargo.lock
333- disallowed-from-async-lint :
334- name : disallowed-from-async-lint
335- runs-on : ubuntu-latest
336- needs : cargo-fmt
337- continue-on-error : true
338- steps :
339- - uses : actions/checkout@v3
340- - name : Install SigP Clippy fork
341- run : |
342- cd ..
343- git clone https://github.com/michaelsproul/rust-clippy.git
344- cd rust-clippy
345- git checkout 31a49666ccfcd7963b63345d6ce757c373f22c2a
346- cargo build --release --bin cargo-clippy --bin clippy-driver
347- cargo build --release --bin cargo-clippy --bin clippy-driver -Zunstable-options --out-dir $(rustc --print=sysroot)/bin
348- - name : Install Protoc
349- uses : arduino/setup-protoc@v1
350- with :
351- repo-token : ${{ secrets.GITHUB_TOKEN }}
352- - name : Run Clippy with the disallowed-from-async lint
353- run : make nightly-lint
354335 check-msrv :
355336 name : check-msrv
356337 runs-on : ubuntu-latest
@@ -360,7 +341,7 @@ jobs:
360341 - name : Install Rust @ MSRV (${{ needs.extract-msrv.outputs.MSRV }})
361342 run : rustup override set ${{ needs.extract-msrv.outputs.MSRV }}
362343 - name : Install Protoc
363- uses : arduino/setup-protoc@v1
344+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
364345 with :
365346 repo-token : ${{ secrets.GITHUB_TOKEN }}
366347 - name : Run cargo check
@@ -404,7 +385,7 @@ jobs:
404385 # NOTE: cargo-udeps version is pinned until this issue is resolved:
405386 # https://github.com/est31/cargo-udeps/issues/135
406387 - name : Install Protoc
407- uses : arduino/setup-protoc@v1
388+ uses : arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
408389 with :
409390 repo-token : ${{ secrets.GITHUB_TOKEN }}
410391 - name : Install cargo-udeps
0 commit comments