forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (66 loc) · 2.1 KB
/
release_fixture_feature.yaml
File metadata and controls
75 lines (66 loc) · 2.1 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
name: Create Fixture Feature Release
on:
push:
tags:
- "tests-*@v*"
workflow_dispatch:
jobs:
feature-names:
runs-on: ubuntu-24.04
outputs:
names: ${{ steps.feature-name.outputs.names }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: false
- name: Get feature names
id: feature-name
shell: bash
run: |
FEATURE_PREFIX="${GITHUB_REF_NAME//@*/}"
FEATURE_NAME="${FEATURE_PREFIX#tests-}"
names=$(grep -Po "^${FEATURE_NAME}(?=:)" .github/configs/feature.yaml | jq --raw-input . | jq -c --slurp .)
echo "names=${names}"
echo "names=${names}" >> "$GITHUB_OUTPUT"
build:
needs: feature-names
runs-on: ubuntu-24.04
timeout-minutes: 1440
strategy:
matrix:
feature: ${{ fromJSON(needs.feature-names.outputs.names) }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: true
- uses: ./.github/actions/build-fixtures
with:
release_name: ${{ matrix.feature }}
uv_version: ${{ vars.UV_VERSION }}
python_version: ${{ vars.DEFAULT_PYTHON_VERSION }}
release:
runs-on: ubuntu-24.04
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: Draft Pre-release to EEST Repository
run: |
# Strip "tests-" prefix from tag for EEST
TAG_NAME="${{ github.ref_name }}"
RELEASE_TAG="${TAG_NAME#tests-}"
gh release create "$RELEASE_TAG" \
--repo monad-developers/execution-spec-tests \
--draft \
--prerelease \
--generate-notes \
./artifacts/**/*
env:
GH_TOKEN: ${{ secrets.EEST_RELEASE_TOKEN }}