Skip to content

Commit 689c5de

Browse files
Merge pull request #483 from cosmos/gjermund/merge-main
chore: backport main to release/v1.0.x
2 parents 62ff732 + d6e28ea commit 689c5de

File tree

83 files changed

+2244
-3833
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2244
-3833
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
target/**
2+
programs/relayer/Dockerfile

.github/actions/e2e-setup/action.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ runs:
2525
path: |
2626
~/.cargo/bin/relayer
2727
~/.cargo/bin/operator
28-
key: ${{ runner.os }}-relayer-${{ hashFiles('Cargo.lock', 'packages/**', 'programs/**', 'abi/**') }}
28+
./target/elf-compilation/riscv32im-succinct-zkvm-elf/release/*
29+
key: ${{ runner.os }}-relayer-${{ hashFiles('Cargo.lock', 'Cargo.toml', 'packages/**', 'programs/**', 'abi/**') }}
2930

3031
- name: Install SP1 toolchain
3132
if: (steps.cache-relayer.outputs.cache-hit != 'true')
@@ -49,6 +50,14 @@ runs:
4950
command: install
5051
args: --bin relayer --path programs/relayer --locked
5152

53+
- name: Install just
54+
if: (steps.cache-relayer.outputs.cache-hit != 'true')
55+
uses: extractions/setup-just@v2
56+
- name: Build SP1 Programs
57+
if: (steps.cache-relayer.outputs.cache-hit != 'true')
58+
shell: bash
59+
run: just build-sp1-programs
60+
5261
- name: Setup Kurtosis
5362
if: env.ETH_TESTNET_TYPE == 'pos'
5463
shell: bash

.github/mergify.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pull_request_rules:
2+
- name: backport patches to v1.0.x branch
3+
conditions:
4+
- base=main
5+
- label=backport-to-v1.0.x
6+
actions:
7+
backport:
8+
branches:
9+
- release/v1.0.x

.github/workflows/abigen.yaml

+14-26
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ on:
1616
- 'packages/go-abigen/**'
1717

1818
jobs:
19-
abigen-check:
20-
name: Check for abigen changes
19+
check:
2120
runs-on: depot-ubuntu-22.04-4
2221
steps:
2322
- uses: actions/checkout@v4
@@ -33,13 +32,19 @@ jobs:
3332
- name: Install abigen
3433
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest
3534

36-
- name: Check that generating files from go does not create any changes
37-
uses: nickcharlton/diff-check@main
38-
with:
39-
command: just generate-abi
35+
- name: Run abigen
36+
run: just generate-abi
4037

41-
abigen-golangci:
42-
name: lint abigen
38+
- name: Check for diffs in go-abigen
39+
run: |
40+
if ! git diff --quiet HEAD -- packages/go-abigen; then
41+
echo "Git diff found in the selected directory. Failing the job."
42+
exit 1
43+
else
44+
echo "No changes detected in the selected directory."
45+
fi
46+
47+
golangci:
4348
runs-on: depot-ubuntu-22.04-4
4449
steps:
4550
- uses: actions/checkout@v4
@@ -54,7 +59,7 @@ jobs:
5459
version: v1.63
5560
working-directory: packages/go-abigen
5661

57-
abigen-test:
62+
test:
5863
runs-on: depot-ubuntu-22.04-4
5964
steps:
6065
- uses: actions/checkout@v4
@@ -65,20 +70,3 @@ jobs:
6570

6671
- name: Unit test abigen
6772
run: cd packages/go-abigen && go test -v ./...
68-
69-
ethgenesis-golangci:
70-
name: lint ethgenesis
71-
runs-on: depot-ubuntu-22.04-4
72-
steps:
73-
- uses: actions/checkout@v4
74-
- uses: actions/setup-go@v4
75-
with:
76-
go-version: 1.23
77-
cache-dependency-path: scripts/ethgenesis/go.sum
78-
79-
- name: golangci-lint
80-
uses: golangci/golangci-lint-action@v6
81-
with:
82-
version: v1.63
83-
args: --timeout=5m
84-
working-directory: scripts/ethgenesis

.github/workflows/rust.yml

-30
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ jobs:
2121
- name: Set up environment
2222
uses: ./.github/actions/foundry-setup
2323

24-
- name: Install SP1 toolchain
25-
shell: bash
26-
run: |
27-
curl -L https://sp1.succinct.xyz | bash
28-
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }}
29-
~/.sp1/bin/cargo-prove prove --version
30-
31-
- name: Install just
32-
uses: extractions/setup-just@v2
33-
- name: Build SP1 Programs
34-
run: just build-sp1-programs
35-
3624
- name: Run cargo fmt
3725
uses: actions-rs/cargo@v1
3826
with:
@@ -51,12 +39,6 @@ jobs:
5139
- name: Set up environment
5240
uses: ./.github/actions/foundry-setup
5341

54-
- name: Install SP1 toolchain
55-
shell: bash
56-
run: |
57-
curl -L https://sp1.succinct.xyz | bash
58-
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }}
59-
~/.sp1/bin/cargo-prove prove --version
6042
- name: Install just
6143
uses: extractions/setup-just@v2
6244
- name: Run unit tests
@@ -72,12 +54,6 @@ jobs:
7254
- uses: actions/checkout@v4
7355
- name: Set up environment
7456
uses: ./.github/actions/foundry-setup
75-
- name: Install SP1 toolchain
76-
shell: bash
77-
run: |
78-
curl -L https://sp1.succinct.xyz | bash
79-
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }}
80-
~/.sp1/bin/cargo-prove prove --version
8157
- name: Build
8258
uses: actions-rs/cargo@v1
8359
with:
@@ -92,12 +68,6 @@ jobs:
9268
- uses: actions/checkout@v4
9369
- name: Set up environment
9470
uses: ./.github/actions/foundry-setup
95-
- name: Install SP1 toolchain
96-
shell: bash
97-
run: |
98-
curl -L https://sp1.succinct.xyz | bash
99-
~/.sp1/bin/sp1up --token ${{ secrets.GITHUB_TOKEN }}
100-
~/.sp1/bin/cargo-prove prove --version
10171
- name: Build
10272
uses: actions-rs/cargo@v1
10373
with:

0 commit comments

Comments
 (0)