forked from ethereum/execution-spec-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#302 from marioevz/tox-build-development-fork
feature: Run development fork tests on github actions
- Loading branch information
Showing
5 changed files
with
120 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'Build EVM' | ||
description: 'Resolves and builds the requested EVM binary by name' | ||
inputs: | ||
type: | ||
description: 'Type of EVM binary to build' | ||
required: true | ||
default: 'main' | ||
outputs: | ||
impl: | ||
description: "Implementation of EVM binary to build" | ||
value: ${{ steps.evm-config-reader.outputs.impl }} | ||
repo: | ||
description: "Repository to use to build the EVM binary" | ||
value: ${{ steps.evm-config-reader.outputs.repo }} | ||
ref: | ||
description: "Reference to branch, commit, or tag to use to build the EVM binary" | ||
value: ${{ steps.evm-config-reader.outputs.ref }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get the selected EVM version from the evm-config.yaml | ||
id: evm-config-reader | ||
shell: bash | ||
run: | | ||
awk "/^${{ inputs.type }}:/{flag=1; next} /^[[:alnum:]]/{flag=0} flag" ./evm-config.yaml \ | ||
| sed 's/ //g' | sed 's/:/=/g' >> "$GITHUB_OUTPUT" | ||
- name: Print Variables for the selected EVM type | ||
shell: bash | ||
run: | | ||
echo "Implementation: ${{ steps.evm-config-reader.outputs.impl }}" | ||
echo "Repository: ${{ steps.evm-config-reader.outputs.repo }}" | ||
echo "Reference: ${{ steps.evm-config-reader.outputs.ref }}" | ||
- name: Build the EVM using Geth action | ||
if: steps.evm-config-reader.outputs.impl == 'geth' | ||
uses: ./.github/actions/build-geth-evm | ||
with: | ||
repo: ${{ steps.evm-config-reader.outputs.repo }} | ||
ref: ${{ steps.evm-config-reader.outputs.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Build Go-Ethereum EVM' | ||
description: 'Builds the Go-Ethereum EVM binary' | ||
inputs: | ||
repo: | ||
description: 'Source repository to use to build the EVM binary' | ||
required: true | ||
default: 'ethereum/go-ethereum' | ||
ref: | ||
description: 'Reference to branch, commit, or tag to use to build the EVM binary' | ||
required: true | ||
default: 'master' | ||
golang: | ||
description: 'Golang version to use to build Geth' | ||
required: false | ||
default: '1.20.5' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout go-ethereum | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ inputs.repo }} | ||
ref: ${{ inputs.ref }} | ||
path: go-ethereum | ||
- name: Setup golang | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ inputs.golang }} | ||
cache-dependency-path: go-ethereum/go.sum | ||
- name: Build evm cmd | ||
shell: bash | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/bin | ||
cd $GITHUB_WORKSPACE/go-ethereum/cmd/evm | ||
go build . | ||
echo $GITHUB_WORKSPACE/go-ethereum/cmd/evm >> $GITHUB_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
main: | ||
impl: geth | ||
repo: ethereum/go-ethereum | ||
ref: master | ||
develop: | ||
impl: geth | ||
repo: marioevz/go-ethereum | ||
ref: cancun-t8n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters