From 68027080b8fe92c7d7e00070678b4bbf988acdc1 Mon Sep 17 00:00:00 2001 From: andrussal Date: Tue, 9 Dec 2025 18:22:47 +0100 Subject: [PATCH] Compose smoke: build linux 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 1fa24e0..acd9d52 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -328,8 +328,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 linux bundle locally." + ./scripts/build-bundle.sh --platform linux --output "${GITHUB_WORKSPACE}/.tmp/nomos-binaries-linux-${VERSION}.tar.gz" + exit 0 fi gh api -X GET "repos/${GITHUB_REPOSITORY}/actions/artifacts/${artifact_id}/zip" > "${download_dir}/nomos-binaries.zip" unzip -o "${download_dir}/nomos-binaries.zip" -d "${download_dir}"