Skip to content

Commit cbd818b

Browse files
chee-chyuanclaude
andcommitted
chore(ci): adopt upstream v2.2.0 compact-codec workflow
Remove op-reth from the matrix; upstream already dropped it in v2.2.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e6d401b commit cbd818b

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/compact.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,38 @@ env:
1616
RUSTC_WRAPPER: "sccache"
1717

1818
name: compact-codec
19+
permissions: {}
20+
1921
jobs:
2022
compact-codec:
21-
runs-on: ubuntu-latest
23+
runs-on: ${{ github.repository == 'paradigmxyz/reth' && 'depot-ubuntu-latest' || 'ubuntu-latest' }}
24+
permissions:
25+
contents: read
2226
strategy:
2327
matrix:
2428
bin:
2529
- cargo run --bin reth --features "dev"
26-
- cargo run --bin op-reth --features "dev" --manifest-path crates/optimism/bin/Cargo.toml
2730
steps:
28-
- uses: rui314/setup-mold@v1
31+
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
2932
- uses: dtolnay/rust-toolchain@stable
30-
- uses: mozilla-actions/sccache-action@v0.0.9
31-
- uses: Swatinem/rust-cache@v2
33+
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
34+
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
3235
with:
3336
cache-on-failure: true
3437
- name: Checkout base
35-
uses: actions/checkout@v6
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3639
with:
3740
ref: ${{ github.base_ref || 'main' }}
41+
persist-credentials: false
3842
# On `main` branch, generates test vectors and serializes them to disk using `Compact`.
3943
- name: Generate compact vectors
4044
run: |
4145
${{ matrix.bin }} -- test-vectors compact --write
4246
- name: Checkout PR
43-
uses: actions/checkout@v6
47+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4448
with:
4549
clean: false
50+
persist-credentials: false
4651
# On incoming merge try to read and decode previously generated vectors with `Compact`
4752
- name: Read vectors
4853
run: ${{ matrix.bin }} -- test-vectors compact --read

0 commit comments

Comments
 (0)