.github: set INFIX_RELEASE when running release tests

Without INFIX_RELEASE, make test resolves INFIX_ARTIFACT to the
unversioned infix-x86_64, but release builds produce versioned
artifacts (infix-x86_64-v26.04.0-rc1.qcow2 etc.), causing the
test environment to fail with "No such file or directory".

[skip ci]

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-04-30 18:34:35 +02:00
parent 3d1d73543e
commit 52ef3e2ded
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -41,11 +41,12 @@ jobs:
use_cache: true
test:
needs: build
needs: [build, set-version]
uses: ./.github/workflows/test.yml
with:
target: x86_64
name: infix
release: ${{ needs.set-version.outputs.version }}
release:
name: Release Infix ${{ github.ref_name }}
+7
View File
@@ -43,6 +43,11 @@ on:
type: string
default: ''
description: 'Optional script to run after checkout (for spin customization)'
release:
required: false
type: string
default: ''
description: 'Release version (e.g. v26.04.0), sets INFIX_RELEASE so make test finds versioned artifacts'
secrets:
CHECKOUT_TOKEN:
required: false
@@ -112,6 +117,8 @@ jobs:
ln -s "${tarfile%.tar.gz}" images
- name: Regression Test ${{ env.TARGET }}
env:
INFIX_RELEASE: ${{ inputs.release }}
run: |
if [ -n "$NINEPM_CONF" ]; then
export NINEPM_PROJ_CONFIG="${GITHUB_WORKSPACE}/$NINEPM_CONF"