Skip to content

Commit

Permalink
fix(ci): extract eofwrap step constants to env
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz committed Nov 21, 2024
1 parent 2eb55b0 commit 96b271c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/build-fixtures/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ runs:
shell: bash
if: ${{ steps.properties.outputs.eofwrap }}
run: |
curl -L https://github.com/ethereum/tests/archive/refs/tags/v14.1.tar.gz | tar -xz
curl -L ${tests_url}${tests_version}.tar.gz | tar -xz
ls -l
uv run eofwrap tests-14.1/BlockchainTests/GeneralStateTests/ fixtures_${{ inputs.release_name }}/blockchain_tests/osaka/eofwrap
uv run eofwrap tests-${tests_version}/BlockchainTests/GeneralStateTests/ fixtures_${{ inputs.release_name }}/${output_path}
mkdir -p ./fixtures_${{ inputs.release_name }}/.meta/
mv fixtures_${{ inputs.release_name }}/blockchain_tests/osaka/eofwrap/metrics.json ./fixtures_${{ inputs.release_name }}/.meta/eofwrap_metrics.json
mv fixtures_${{ inputs.release_name }}/${output_path}/metrics.json ./fixtures_${{ inputs.release_name }}/.meta/eofwrap_metrics.json
env:
tests_url: https://github.com/ethereum/tests/archive/refs/tags/v
tests_version: 14.1
output_path: blockchain_tests/osaka/eofwrap
- name: Generate fixtures using fill
shell: bash
run: |
Expand Down

0 comments on commit 96b271c

Please sign in to comment.