summaryrefslogtreecommitdiffstats
path: root/.github/workflows/daily-build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/daily-build.yml')
-rw-r--r--.github/workflows/daily-build.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml
index 257b352..b3af5a4 100644
--- a/.github/workflows/daily-build.yml
+++ b/.github/workflows/daily-build.yml
@@ -12,6 +12,26 @@ permissions:
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel.
jobs:
+ get-old-names:
+ runs-on: ubuntu-latest
+ outputs:
+ hdf5-name: ${{ steps.gethdf5base.outputs.HDF5_NAME_BASE }}
+
+ steps:
+ - uses: actions/checkout@v4.1.1
+
+ - name: Get hdf5 release base name
+ uses: dsaltares/fetch-gh-release-asset@master
+ with:
+ version: 'tags/snapshot-1.14'
+ file: 'last-file.txt'
+
+ - name: Read base-name file
+ id: gethdf5base
+ run: echo "HDF5_NAME_BASE=$(cat last-file.txt)" >> $GITHUB_OUTPUT
+
+ - run: echo "hdf5 base name is ${{ steps.gethdf5base.outputs.HDF5_NAME_BASE }}."
+
call-workflow-tarball:
uses: ./.github/workflows/tarball.yml
with:
@@ -23,6 +43,7 @@ jobs:
uses: ./.github/workflows/cmake-ctest.yml
with:
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
+ preset_name: ci-StdShar
#use_tag: snapshot-1.14
#use_environ: snapshots
if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
@@ -50,3 +71,14 @@ jobs:
use_environ: snapshots
if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
+ call-workflow-remove:
+ needs: [get-old-names, call-workflow-tarball, call-workflow-ctest, call-workflow-abi, call-workflow-release]
+ permissions:
+ contents: write # In order to allow file deletion
+ uses: ./.github/workflows/remove-files.yml
+ with:
+ file_base: ${{ needs.get-old-names.outputs.hdf5-name }}
+ use_tag: snapshot-1.14
+ use_environ: snapshots
+ if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
+