2222 binary_name : reth
2323
2424 prepare-hive :
25- if : github.repository == 'paradigmxyz/ reth'
25+ if : github.repository == 'op-rs/op- reth'
2626 timeout-minutes : 45
27- runs-on :
28- group : Reth
27+ runs-on : ubuntu-latest
2928 steps :
3029 - uses : actions/checkout@v5
3130 - name : Checkout hive tests
@@ -34,14 +33,39 @@ jobs:
3433 repository : ethereum/hive
3534 path : hivetests
3635
36+ - name : Get hive commit hash
37+ id : hive-commit
38+ run : echo "hash=$(cd hivetests && git rev-parse HEAD)" >> $GITHUB_OUTPUT
39+
3740 - uses : actions/setup-go@v6
3841 with :
3942 go-version : " ^1.13.1"
4043 - run : go version
4144
45+ - name : Restore hive assets cache
46+ id : cache-hive
47+ uses : actions/cache@v4
48+ with :
49+ path : ./hive_assets
50+ key : hive-assets-${{ steps.hive-commit.outputs.hash }}-${{ hashFiles('.github/assets/hive/build_simulators.sh') }}
51+
4252 - name : Build hive assets
53+ if : steps.cache-hive.outputs.cache-hit != 'true'
4354 run : .github/assets/hive/build_simulators.sh
4455
56+ - name : Load cached Docker images
57+ if : steps.cache-hive.outputs.cache-hit == 'true'
58+ run : |
59+ cd hive_assets
60+ for tar_file in *.tar; do
61+ if [ -f "$tar_file" ]; then
62+ echo "Loading $tar_file..."
63+ docker load -i "$tar_file"
64+ fi
65+ done
66+ # Make hive binary executable
67+ chmod +x hive
68+
4569 - name : Upload hive assets
4670 uses : actions/upload-artifact@v4
4771 with :
@@ -150,8 +174,7 @@ jobs:
150174 - prepare-reth
151175 - prepare-hive
152176 name : run ${{ matrix.scenario.sim }}${{ matrix.scenario.limit && format(' - {0}', matrix.scenario.limit) }}
153- runs-on :
154- group : Reth
177+ runs-on : ubuntu-latest
155178 permissions :
156179 issues : write
157180 steps :
@@ -218,8 +241,7 @@ jobs:
218241 notify-on-error :
219242 needs : test
220243 if : failure()
221- runs-on :
222- group : Reth
244+ runs-on : ubuntu-latest
223245 steps :
224246 - name : Slack Webhook Action
225247 uses : rtCamp/action-slack-notify@v2
0 commit comments