mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
.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:
@@ -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 }}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user