Skip to content

Commit

Permalink
ci: consume stable fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Aug 27, 2024
1 parent bfd7b5e commit 554adec
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/stable-spec-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Execution Spec Tests Fill and Consume (stable)

on:
push:
branches: [master, jsign/ci-stable-fixtures]
pull_request:
branches: [master, kaustinen-with-shapella]
workflow_dispatch:

env:
FIXTURES_TAG: "[email protected]"

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout go-ethereum
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12.4"

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4

- name: Build geth evm
run: |
go build -v ./cmd/evm
mkdir -p ${{ github.workspace }}/bin
mv evm ${{ github.workspace }}/bin/evm
chmod +x ${{ github.workspace }}/bin/evm
- name: Archive built evm
uses: actions/upload-artifact@v4
with:
name: evm
path: ${{ github.workspace }}/bin/evm

consume:
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
filename: [fixtures_verkle-conversion-stride-0, fixtures_verkle-genesis]
steps:
- name: Download geth evm
uses: actions/download-artifact@v4
with:
name: evm
path: ./bin

- name: Make evm binary executable and add to PATH
run: |
chmod +x ./bin/evm
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Download fixtures
uses: robinraju/release-downloader@v1
with:
repository: "ethereum/execution-spec-tests"
tag: "${{ env.FIXTURES_TAG }}"
fileName: "${{ matrix.filename }}.tar.gz"
extract: true
- name: Clone execution-spec-tests and consume tests
run: |
git clone https://github.com/ethereum/execution-spec-tests -b ${{ env.FIXTURES_TAG }}
cd execution-spec-tests
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install -e ".[docs,lint,test]"
solc-select use 0.8.24 --always-install
consume direct --input=../${{ matrix.filename }} -n auto
shell: bash

0 comments on commit 554adec

Please sign in to comment.