Skip to content

Commit b5a9255

Browse files
authored
create seperate tarballs for nec and nvp (#3688)
* create seperate tarballs for nec and nvp * opinionated naming scheme
1 parent 8413e38 commit b5a9255

File tree

2 files changed

+46
-18
lines changed

2 files changed

+46
-18
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,56 @@ jobs:
5858
id: make_dist
5959
run: |
6060
make dist-${{ matrix.os }}-${{ matrix.cpu }}
61+
6162
cd dist
6263
ARCHIVE=$(echo *.tar.gz)
6364
ARCHIVE_DIR=$(basename -s .tar.gz -- *.tar.gz)
64-
tar -xzf ${ARCHIVE}
65+
tar -xzf "${ARCHIVE}"
66+
67+
# Expose original archive/dir names if you still want them later
6568
echo "archive=${ARCHIVE}" >> $GITHUB_OUTPUT
6669
echo "archive_dir=${ARCHIVE_DIR}" >> $GITHUB_OUTPUT
6770
68-
- name: Upload archive artefact
69-
uses: actions/upload-artifact@v4
70-
with:
71-
name: ${{ matrix.os }}-${{ matrix.cpu }}-archive
72-
path: |
73-
./dist/${{ steps.make_dist.outputs.archive }}
74-
retention-days: 2
71+
# Compose per-component tarball names
72+
REFNAME="${{ github.ref }}"
73+
TAG="${REFNAME#refs/tags/}"
74+
OS="${{ matrix.os }}"
75+
CPU="${{ matrix.cpu }}"
7576
76-
- name: Upload execution client checksum artefact
77+
NEC_TAR="nimbus_execution_client-${OS}-${CPU}-${TAG}.tar.gz"
78+
NVP_TAR="nimbus_verified_proxy-${OS}-${CPU}-${TAG}.tar.gz"
79+
80+
# Pack only the relevant binaries (and their checksums) from build/
81+
# Add additional files (LICENSE, README, configs) if desired with extra -C args.
82+
tar -czf "${NEC_TAR}" -C "${ARCHIVE_DIR}/build" \
83+
nimbus_execution_client nimbus_execution_client.sha512sum
84+
85+
tar -czf "${NVP_TAR}" -C "${ARCHIVE_DIR}/build" \
86+
nimbus_verified_proxy nimbus_verified_proxy.sha512sum
87+
88+
# Optional: generate sha512 for the tarballs themselves (not required by GH)
89+
sha512sum "${NEC_TAR}" > "${NEC_TAR}.sha512sum"
90+
sha512sum "${NVP_TAR}" > "${NVP_TAR}.sha512sum"
91+
92+
echo "nec_tar=${NEC_TAR}" >> $GITHUB_OUTPUT
93+
echo "nvp_tar=${NVP_TAR}" >> $GITHUB_OUTPUT
94+
95+
- name: Upload execution client tarball artefact
7796
uses: actions/upload-artifact@v4
7897
with:
79-
name: ${{ matrix.os }}-${{ matrix.cpu }}-checksum
80-
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_execution_client.sha512sum
98+
name: ${{ matrix.os }}-${{ matrix.cpu }}-execution
99+
path: |
100+
./dist/${{ steps.make_dist.outputs.nec_tar }}
101+
./dist/${{ steps.make_dist.outputs.nec_tar }}.sha512sum
81102
retention-days: 2
82103

83-
- name: Upload proxy checksum artefact
104+
- name: Upload verified proxy tarball artefact
84105
uses: actions/upload-artifact@v4
85106
with:
86-
name: proxy-${{ matrix.os }}-${{ matrix.cpu }}-checksum
87-
path: ./dist/${{ steps.make_dist.outputs.archive_dir }}/build/nimbus_verified_proxy.sha512sum
107+
name: ${{ matrix.os }}-${{ matrix.cpu }}-proxy
108+
path: |
109+
./dist/${{ steps.make_dist.outputs.nvp_tar }}
110+
./dist/${{ steps.make_dist.outputs.nvp_tar }}.sha512sum
88111
retention-days: 2
89112

90113
- name: Login to Docker Hub
@@ -166,10 +189,14 @@ jobs:
166189
name: 'Release build ("${{ steps.extract_branch.outputs.tag_name }}")'
167190
body_path: release_notes.md
168191
files: |
169-
linux-amd64-archive/*
170-
linux-arm64-archive/*
171-
windows-amd64-archive/*
172-
macos-arm64-archive/*
192+
linux-amd64-execution/*
193+
linux-amd64-proxy/*
194+
linux-arm64-execution/*
195+
linux-arm64-proxy/*
196+
windows-amd64-execution/*
197+
windows-amd64-proxy/*
198+
macos-arm64-execution/*
199+
macos-arm64-proxy/*
173200
174201
- name: Delete artefacts
175202
uses: geekyeggo/delete-artifact@v5

execution_chain/config.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const
4444
NimbusCopyright* = "Copyright (c) 2018-" &
4545
CompileDate.split('-')[0] &
4646
" Status Research & Development GmbH"
47+
4748
# e.g.:
4849
# nimbus_execution_client/v0.1.0-abcdef/os-cpu/nim-a.b.c/emvc
4950
# Copyright (c) 2018-2025 Status Research & Development GmbH

0 commit comments

Comments
 (0)