Skip to content

Commit 5be2cd1

Browse files
committed
fix
1 parent ddb94dd commit 5be2cd1

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

.github/workflows/_build-binaries.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ name: Build Binaries
55
on:
66
workflow_call:
77
inputs:
8-
reth_version:
9-
description: "Reth version to build"
8+
optimism_version:
9+
description: "Optimism version to build"
1010
required: false
1111
type: string
12-
default: "564ffa586845fa4a8bb066f0c7b015ff36b26c08"
12+
default: "3019251e80aa248e91743addd3e833190acb26f1"
1313
geth_version:
1414
description: "Geth version to build"
1515
required: false
@@ -85,25 +85,25 @@ jobs:
8585

8686
- name: Cache reth binary
8787
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
88-
id: cache-reth
88+
id: cache-optimism
8989
with:
9090
path: ~/bin/reth
91-
key: ${{ runner.os }}-reth-${{ inputs.reth_version }}
91+
key: ${{ runner.os }}-reth-${{ inputs.optimism_version }}
9292

9393
- name: Build reth
9494
if: steps.cache-reth.outputs.cache-hit != 'true'
9595
run: |
9696
unset CI
9797
mkdir -p ~/bin
9898
cd clients
99-
RETH_VERSION=${{ inputs.reth_version }} OUTPUT_DIR=~/bin ./build-reth.sh
99+
OPTIMISM_VERSION=${{ inputs.optimism_version }} OUTPUT_DIR=~/bin ./build-reth.sh
100100
# Rename op-reth to reth for consistency
101101
[ -f ~/bin/op-reth ] && mv ~/bin/op-reth ~/bin/reth || true
102102
103103
- name: Upload reth artifact
104104
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
105105
with:
106-
name: reth
106+
name: optimism
107107
path: ~/bin/reth
108108
retention-days: 1
109109

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
actions: write # Required for reusable workflow to upload artifacts
7070
uses: ./.github/workflows/_build-binaries.yaml
7171
with:
72-
reth_version: 564ffa586845fa4a8bb066f0c7b015ff36b26c08
72+
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
7373
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
7474
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
7575
base_reth_node_version: main

.github/workflows/examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
actions: write # Required for reusable workflow to upload artifacts
1717
uses: ./.github/workflows/_build-binaries.yaml
1818
with:
19-
reth_version: 564ffa586845fa4a8bb066f0c7b015ff36b26c08
19+
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
2121
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
2222
base_reth_node_version: main

.github/workflows/public-benchmarks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
actions: write # Required for reusable workflow to upload artifacts
1717
uses: ./.github/workflows/_build-binaries.yaml
1818
with:
19-
reth_version: 564ffa586845fa4a8bb066f0c7b015ff36b26c08
19+
optimism_version: 3019251e80aa248e91743addd3e833190acb26f1
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
2121
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
2222

clients/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Modify the `versions.env` file to change defaults for all builds:
7373

7474
```bash
7575
# Edit versions.env to update default versions
76-
RETH_VERSION="v0.2.0-beta.5"
76+
OPTIMISM_VERSION="v0.2.0-beta.5"
7777
GETH_VERSION="v1.13.0"
7878
BUILDER_VERSION="your-commit-hash"
7979
```
@@ -83,7 +83,7 @@ Override specific builds with environment variables:
8383

8484
```bash
8585
# Build reth from a specific commit
86-
RETH_REPO="https://github.com/paradigmxyz/reth/" RETH_VERSION="v0.1.0" ./build-reth.sh
86+
OPTIMISM_REPO="https://github.com/ethereum-optimism/optimism/" OPTIMISM_VERSION="v0.1.0" ./build-reth.sh
8787

8888
# Build geth from a fork
8989
GETH_REPO="https://github.com/your-fork/op-geth/" GETH_VERSION="your-branch" ./build-geth.sh
@@ -95,8 +95,8 @@ BUILDER_VERSION="main" ./build-builder.sh
9595
### Available Environment Variables
9696

9797
#### For reth (build-reth.sh):
98-
- `RETH_REPO`: Git repository URL (default: https://github.com/paradigmxyz/reth/)
99-
- `RETH_VERSION`: Git branch, tag, or commit hash (default: main)
98+
- `OPTIMISM_REPO`: Git repository URL (default: https://github.com/ethereum-optimism/optimism/)
99+
- `OPTIMISM_VERSION`: Git branch, tag, or commit hash (default: develop)
100100
- `BUILD_DIR`: Directory for source code (default: ./build)
101101
- `OUTPUT_DIR`: Directory for built binaries (default: ../bin)
102102

clients/build-reth.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ if [ -f "versions.env" ]; then
88
fi
99

1010
# Default values
11-
RETH_REPO="${RETH_REPO:-https://github.com/ethereum-optimism/optimism/}"
12-
RETH_VERSION="${RETH_VERSION:-develop}"
11+
OPTIMISM_REPO="${OPTIMISM_REPO:-https://github.com/ethereum-optimism/optimism/}"
12+
OPTIMISM_VERSION="${OPTIMISM_VERSION:-develop}"
1313
BUILD_DIR="${BUILD_DIR:-./build}"
1414
OUTPUT_DIR="${OUTPUT_DIR:-../bin}"
1515

1616
echo "Building op-reth binary..."
17-
echo "Repository: $RETH_REPO"
18-
echo "Version/Commit: $RETH_VERSION"
17+
echo "Repository: $OPTIMISM_REPO"
18+
echo "Version/Commit: $OPTIMISM_VERSION"
1919
echo "Build directory: $BUILD_DIR"
2020
echo "Output directory: $OUTPUT_DIR"
2121

@@ -30,17 +30,17 @@ if [ -d "optimism" ]; then
3030
git fetch origin
3131

3232
# ensure remote matches the repository
33-
git remote set-url origin "$RETH_REPO"
33+
git remote set-url origin "$OPTIMISM_REPO"
3434
git fetch origin
3535
else
3636
echo "Cloning optimism repository..."
37-
git clone "$RETH_REPO" optimism
37+
git clone "$OPTIMISM_REPO" optimism
3838
cd optimism
3939
fi
4040

4141
# Checkout specified version/commit
42-
echo "Checking out version: $RETH_VERSION"
43-
git checkout -f "$RETH_VERSION"
42+
echo "Checking out version: $OPTIMISM_VERSION"
43+
git checkout -f "$OPTIMISM_VERSION"
4444

4545
pushd rust
4646

clients/versions.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Source this file in scripts to use these variables
44

55
# Reth Configuration
6-
RETH_REPO="https://github.com/paradigmxyz/reth/"
7-
RETH_VERSION="v1.11.0"
6+
OPTIMISM_REPO="https://github.com/ethereum-optimism/optimism/"
7+
OPTIMISM_VERSION="3019251e80aa248e91743addd3e833190acb26f1"
88

99
# Op-Geth Configuration
1010
GETH_REPO="https://github.com/ethereum-optimism/op-geth/"

0 commit comments

Comments
 (0)