2023-06-30 04:40:27 +08:00
|
|
|
name: hdf5 dev release build
|
2023-05-26 01:24:54 +08:00
|
|
|
|
2023-06-30 04:40:27 +08:00
|
|
|
# Controls when the action will run. Triggers the workflow on a manual run
|
2023-05-26 01:24:54 +08:00
|
|
|
on:
|
2023-06-30 04:40:27 +08:00
|
|
|
workflow_dispatch:
|
2023-05-26 01:24:54 +08:00
|
|
|
inputs:
|
2023-06-30 04:40:27 +08:00
|
|
|
use_tag:
|
|
|
|
description: 'Release version tag'
|
2023-05-26 01:24:54 +08:00
|
|
|
type: string
|
2023-06-30 04:40:27 +08:00
|
|
|
required: false
|
|
|
|
default: snapshot
|
2023-05-26 01:24:54 +08:00
|
|
|
|
2023-06-16 22:57:14 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-06-30 04:40:27 +08:00
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or
|
|
|
|
# in parallel.
|
2023-05-26 01:24:54 +08:00
|
|
|
jobs:
|
2023-06-30 04:40:27 +08:00
|
|
|
log-the-inputs:
|
2023-05-26 01:24:54 +08:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-14 01:17:52 +08:00
|
|
|
outputs:
|
|
|
|
rel_tag: ${{ steps.get-tag-name.outputs.RELEASE_TAG }}
|
2023-05-26 01:24:54 +08:00
|
|
|
steps:
|
2023-07-14 01:17:52 +08:00
|
|
|
- name: Get tag name
|
|
|
|
id: get-tag-name
|
|
|
|
env:
|
|
|
|
TAG: ${{ inputs.use_tag }}
|
|
|
|
run: echo "RELEASE_TAG=$TAG" >> $GITHUB_OUTPUT
|
2023-07-13 04:04:26 +08:00
|
|
|
|
|
|
|
# tarball.yml will be used for releases when pre-tag actions are implemented
|
|
|
|
# call-workflow-tarball:
|
|
|
|
# needs: log-the-inputs
|
|
|
|
# uses: ./.github/workflows/tarball.yml
|
|
|
|
# with:
|
|
|
|
# use_tag: ${{ inputs.use_tag }}
|
|
|
|
# use_environ: release
|
|
|
|
|
|
|
|
create-files-ctest:
|
2023-06-30 04:40:27 +08:00
|
|
|
needs: log-the-inputs
|
2023-07-13 04:04:26 +08:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-14 01:17:52 +08:00
|
|
|
outputs:
|
|
|
|
file_base: ${{ steps.set-file-base.outputs.FILE_BASE }}
|
2023-07-13 04:04:26 +08:00
|
|
|
steps:
|
|
|
|
- name: Set file base name
|
|
|
|
id: set-file-base
|
|
|
|
run: |
|
2023-07-14 01:17:52 +08:00
|
|
|
FILE_NAME_BASE=$(echo "${{ needs.log-the-inputs.outputs.rel_tag }}")
|
2023-07-13 04:04:26 +08:00
|
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
|
|
- name: Get Sources
|
2023-12-14 04:02:24 +08:00
|
|
|
uses: actions/checkout@v4.1.1
|
2023-07-13 04:04:26 +08:00
|
|
|
with:
|
2023-07-14 01:17:52 +08:00
|
|
|
path: hdfsrc
|
2023-07-13 04:04:26 +08:00
|
|
|
|
|
|
|
- name: Zip Folder
|
|
|
|
run: |
|
2023-07-14 01:17:52 +08:00
|
|
|
zip -r ${{ steps.set-file-base.outputs.FILE_BASE }}.zip ./hdfsrc
|
|
|
|
tar -zcvf ${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz ./hdfsrc
|
2023-07-13 04:04:26 +08:00
|
|
|
|
|
|
|
- name: List files in the repository
|
|
|
|
run: |
|
|
|
|
ls -l ${{ github.workspace }}
|
|
|
|
ls $GITHUB_WORKSPACE
|
|
|
|
|
|
|
|
# Save files created by release script
|
|
|
|
- name: Save tgz-tarball
|
2024-01-08 22:06:40 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-07-13 04:04:26 +08:00
|
|
|
with:
|
|
|
|
name: tgz-tarball
|
|
|
|
path: ${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz
|
|
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
|
|
|
|
- name: Save zip-tarball
|
2024-01-08 22:06:40 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-07-13 04:04:26 +08:00
|
|
|
with:
|
|
|
|
name: zip-tarball
|
|
|
|
path: ${{ steps.set-file-base.outputs.FILE_BASE }}.zip
|
|
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
2023-06-30 04:40:27 +08:00
|
|
|
|
|
|
|
call-workflow-ctest:
|
2023-07-13 04:04:26 +08:00
|
|
|
needs: create-files-ctest
|
2023-06-30 04:40:27 +08:00
|
|
|
uses: ./.github/workflows/cmake-ctest.yml
|
|
|
|
with:
|
2023-07-13 04:04:26 +08:00
|
|
|
file_base: ${{ needs.create-files-ctest.outputs.file_base }}
|
2024-01-29 21:38:54 +08:00
|
|
|
preset_name: ci-StdShar
|
2023-06-30 04:40:27 +08:00
|
|
|
|
2024-02-08 21:58:08 +08:00
|
|
|
call-workflow-abi:
|
|
|
|
needs: [log-the-inputs, create-files-ctest, call-workflow-ctest]
|
|
|
|
uses: ./.github/workflows/abi-report.yml
|
|
|
|
with:
|
|
|
|
file_ref: '1_14_3'
|
|
|
|
file_base: ${{ needs.create-files-ctest.outputs.file_base }}
|
|
|
|
use_tag: ${{ needs.log-the-inputs.outputs.rel_tag }}
|
|
|
|
use_environ: release
|
|
|
|
|
2023-06-30 04:40:27 +08:00
|
|
|
call-workflow-release:
|
2024-02-08 21:58:08 +08:00
|
|
|
needs: [log-the-inputs, create-files-ctest, call-workflow-ctest, call-workflow-abi]
|
2023-06-13 11:43:06 +08:00
|
|
|
permissions:
|
2023-06-30 04:40:27 +08:00
|
|
|
contents: write # In order to allow tag creation
|
|
|
|
uses: ./.github/workflows/release-files.yml
|
|
|
|
with:
|
2023-07-13 04:04:26 +08:00
|
|
|
file_base: ${{ needs.create-files-ctest.outputs.file_base }}
|
2023-07-14 01:17:52 +08:00
|
|
|
file_branch: ${{ needs.log-the-inputs.outputs.rel_tag }}
|
|
|
|
file_sha: ${{ needs.log-the-inputs.outputs.rel_tag }}
|
|
|
|
use_tag: ${{ needs.log-the-inputs.outputs.rel_tag }}
|
|
|
|
use_environ: release
|
2023-06-13 11:43:06 +08:00
|
|
|
|