Files
Larry Knox 6ce73cd9f9 Update ci hdf5config.cmake to re-enable GitHub daily tests (#6180)
Update CI workflows to use symbolic links instead of copying files to re-enable GitHub daily tests.

Workflows:
    Update analysis.yml, cygwin.yml, and par-script.yml to use symbolic links instead of copying CTestScript.cmake and HDF5config.cmake.
    Update par-source.yml and script.yml similarly to use symbolic links for the same files.

Commands:
    Replace cp with ln -s in Linux workflows.
    Replace Copy-Item with New-Item -ItemType SymbolicLink in Windows workflows.

Purpose:
    Re-enable GitHub daily tests:  linked HDF5config.cmake allows CMake to find the HDF5VersionParsing.cmake file to get the HDF5 version.

Also updated runs-on:  ubuntu-22.04 to ubuntu-latest.
2026-01-29 12:08:40 -06:00

26 lines
1.3 KiB
YAML

name: 'Symlink CTest Scripts'
description: 'Create symlinks for HDF5config.cmake and CTestScript.cmake in the ctest run directory'
inputs:
source-base:
description: 'Source base directory name (e.g., hdfsrc)'
required: true
runs:
using: 'composite'
steps:
- name: Create symlinks (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
mkdir -p ${{ runner.workspace }}/hdf5
ln -sf ${{ github.workspace }}/${{ inputs.source-base }}/config/cmake/scripts/CTestScript.cmake ${{ runner.workspace }}/hdf5/CTestScript.cmake
ln -sf ${{ github.workspace }}/${{ inputs.source-base }}/config/cmake/scripts/HDF5config.cmake ${{ runner.workspace }}/hdf5/HDF5config.cmake
- name: Create symlinks (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
New-Item -ItemType Directory -Path ${{ runner.workspace }}/hdf5 -Force | Out-Null
New-Item -ItemType SymbolicLink -Path ${{ runner.workspace }}/hdf5/CTestScript.cmake -Target ${{ github.workspace }}/${{ inputs.source-base }}/config/cmake/scripts/CTestScript.cmake -Force
New-Item -ItemType SymbolicLink -Path ${{ runner.workspace }}/hdf5/HDF5config.cmake -Target ${{ github.workspace }}/${{ inputs.source-base }}/config/cmake/scripts/HDF5config.cmake -Force