mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Add back snapshot names (#4198)
This commit is contained in:
parent
4ebfbd6370
commit
0e179d1f60
2
.github/workflows/daily-build.yml
vendored
2
.github/workflows/daily-build.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
call-workflow-tarball:
|
||||
uses: ./.github/workflows/tarball.yml
|
||||
with:
|
||||
#use_tag: snapshot
|
||||
use_tag: snapshot
|
||||
use_environ: snapshots
|
||||
|
||||
call-workflow-ctest:
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
needs: log-the-inputs
|
||||
uses: ./.github/workflows/tarball.yml
|
||||
with:
|
||||
# use_tag: ${{ inputs.use_tag }}
|
||||
use_tag: ${{ inputs.use_tag }}
|
||||
use_environ: release
|
||||
|
||||
call-workflow-ctest:
|
||||
|
29
.github/workflows/tarball.yml
vendored
29
.github/workflows/tarball.yml
vendored
@ -4,11 +4,11 @@ name: hdf5 dev tarball
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
# use_tag:
|
||||
# description: 'Release version tag'
|
||||
# type: string
|
||||
# required: false
|
||||
# default: snapshot
|
||||
use_tag:
|
||||
description: 'Release version tag'
|
||||
type: string
|
||||
required: false
|
||||
default: snapshot
|
||||
use_environ:
|
||||
description: 'Environment to locate files'
|
||||
type: string
|
||||
@ -105,7 +105,12 @@ jobs:
|
||||
then
|
||||
FILE_NAME_BASE=$(echo "hdf5-${{ needs.check_commits.outputs.branch_ref }}-${{ needs.check_commits.outputs.branch_sha }}")
|
||||
else
|
||||
FILE_NAME_BASE=$(echo "hdf5-${{ steps.version.outputs.TAG_VERSION }}")
|
||||
if [[ '${{ inputs.use_tag }}' == 'snapshot' ]]
|
||||
then
|
||||
FILE_NAME_BASE=$(echo "${{ inputs.use_tag }}")
|
||||
else
|
||||
FILE_NAME_BASE=$(echo "hdf5-${{ steps.version.outputs.TAG_VERSION }}")
|
||||
fi
|
||||
fi
|
||||
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
@ -120,10 +125,18 @@ jobs:
|
||||
|
||||
- name: Create release file base name
|
||||
id: create-rel-base
|
||||
if: ${{ (inputs.use_environ == 'release') }}
|
||||
if: ${{ (inputs.use_environ == 'release') && (inputs.use_tag != 'snapshot') }}
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/hdfsrc"
|
||||
bin/release -d $GITHUB_WORKSPACE gzip zip cmake-tgz cmake-zip
|
||||
bin/release -d $GITHUB_WORKSPACE gzip zip
|
||||
shell: bash
|
||||
|
||||
- name: Create snapshot file base name
|
||||
id: create-snap-base
|
||||
if: ${{ (inputs.use_tag == 'snapshot') && (inputs.use_environ == 'release') }}
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/hdfsrc"
|
||||
bin/release -d $GITHUB_WORKSPACE --branch ${{ inputs.use_tag }} gzip zip
|
||||
shell: bash
|
||||
|
||||
- name: List files in the repository
|
||||
|
Loading…
Reference in New Issue
Block a user