forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (86 loc) · 2.9 KB
/
Copy pathrelease_fixture_full.yaml
File metadata and controls
93 lines (86 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Create Fixture Full Release
on:
push:
tags:
- "tests-v[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
jobs:
features:
runs-on: ubuntu-latest
outputs:
features: ${{ steps.parse.outputs.features }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Get names from .github/configs/feature.yaml
id: parse
shell: bash
run: |
# Get all features without `feature_only: true`
grep -Po "^[0-9a-zA-Z_\-]+" ./.github/configs/feature.yaml | \
while read -r feature; do
if ! awk "/^$feature:/{flag=1; next} /^[[:alnum:]]/{flag=0} flag && /feature_only:.*true/{exit 1}" \
./.github/configs/feature.yaml; then
continue
fi
echo "$feature"
done | jq -R . | jq -cs . > features.json
echo "features=$(cat features.json)" >> "$GITHUB_OUTPUT"
build:
needs: features
runs-on: [self-hosted-ghr, size-gigachungus-x64]
timeout-minutes: 1440
strategy:
matrix:
name: ${{ fromJson(needs.features.outputs.features) }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: true
- name: Fetch lllc
uses: ./.github/actions/fetch-binary
with:
version: v1.0.0
repo_owner: felix314159
repo_name: lllc-custom
remote_name: lllc
binary_name: lllc
expected_sha256: 865a0d5379acb3b5471337b5dcf686a2dd71587c6b65b9da6c963de627e0b300
- name: Fetch Solidity
uses: ./.github/actions/fetch-binary
with:
version: v0.8.24
repo_owner: ethereum
repo_name: solidity
remote_name: solc-static-linux
binary_name: solc
expected_sha256: fb03a29a517452b9f12bcf459ef37d0a543765bb3bbc911e70a87d6a37c30d5f
- uses: ./.github/actions/build-fixtures
with:
release_name: ${{ matrix.name }}
uv_version: ${{ vars.UV_VERSION }}
python_version: ${{ vars.DEFAULT_PYTHON_VERSION }}
release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/tests-')
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: false
- name: Download all artifacts
run: |
gh run download ${{ github.run_id }} --dir ./artifacts
env:
GH_TOKEN: ${{ github.token }}
- name: Create Release
run: |
# Strip "tests-" prefix from tag for EEST
TAG_NAME="${{ github.ref_name }}"
RELEASE_TAG="${TAG_NAME#tests-}"
gh release create "$RELEASE_TAG" \
--repo ethereum/execution-spec-tests \
--draft \
--generate-notes \
./artifacts/**/*
env:
GH_TOKEN: ${{ secrets.EEST_RELEASE_TOKEN }}