From 06bc15e29ea682307d70b3a1f1aea67df12ccaa9 Mon Sep 17 00:00:00 2001 From: andrussal Date: Tue, 9 Dec 2025 18:19:19 +0100 Subject: [PATCH] Host smoke: build bundle when artifact missing --- .github/workflows/lint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 77fd84a..1fa24e0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -227,8 +227,9 @@ jobs: artifact_id=$(gh api -X GET "repos/${GITHUB_REPOSITORY}/actions/artifacts" --paginate -F per_page=100 \ --jq '.artifacts[] | select(.name=="'"${ARTIFACT_NAME}"'") | .id' | head -n1) if [ -z "$artifact_id" ]; then - echo "Nomos binaries artifact ${ARTIFACT_NAME} not found. Run build-binaries workflow." >&2 - exit 1 + echo "Nomos binaries artifact ${ARTIFACT_NAME} not found; building host bundle locally." + ./scripts/build-bundle.sh --platform host --output "${GITHUB_WORKSPACE}/.tmp/nomos-binaries-host-${VERSION}.tar.gz" + exit 0 fi gh api -X GET "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}/zip" > "${TMPDIR}/nomos-binaries.zip" unzip -o "${TMPDIR}/nomos-binaries.zip" -d "${TMPDIR}"