Skip to content
37 changes: 37 additions & 0 deletions .github/workflows/test-software.eessi.io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,43 @@ env:
# and then allow for special cases for specific architectures
aarch64/a64fx: []
jobs:
check_EESSI_version_changed_files:
Comment thread
TopRichard marked this conversation as resolved.
runs-on: ubuntu-24.04
outputs:
EESSI_VERSIONS: ${{ steps.detect.outputs.EESSI_VERSIONS }}
steps:
- name: Check out software-layer repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Detect EESSI version in modified easystack files
id: detect
run: |
# Fetch base branch explicitly to ensure it's available
git fetch origin ${{ github.base_ref }}

changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD)
echo "Files changed: $changed_files"

# Default to both versions
Comment thread
TopRichard marked this conversation as resolved.
Outdated
EESSI_VERSIONS=""

# Check for specific versions in the changed easystack files
if echo "$changed_files" | grep -q "easystacks/software.eessi.io/2023.06"; then
EESSI_VERSIONS="2023.06"
elif echo "$changed_files" | grep -q "easystacks/software.eessi.io/2025.06"; then
EESSI_VERSIONS="2025.06"
fi
Comment thread
TopRichard marked this conversation as resolved.
Outdated
echo "PR easystack changes related to EESSI VERSION: $EESSI_VERSIONS"

# Use GITHUB_OUTPUT heredoc correctly
echo "EESSI_VERSIONS<<EOF" >> "$GITHUB_OUTPUT"
echo "$EESSI_VERSIONS" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"

check_missing:
needs: check_EESSI_version_changed_files
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -153,6 +189,7 @@ jobs:
cvmfs_repositories: software.eessi.io

- name: Check for missing installlations
if: contains(needs.check_EESSI_version_changed_files.outputs.EESSI_VERSIONS, matrix.EESSI_VERSION)
run: |
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=${{matrix.EESSI_SOFTWARE_SUBDIR_OVERRIDE}}
source /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/init/bash
Expand Down
Loading