Skip to content

hdf5 examples release build #6

hdf5 examples release build

hdf5 examples release build #6

Workflow file for this run

name: hdf5 examples release build
# Controls when the action will run. Triggers the workflow on a manual run
on:
workflow_dispatch:
inputs:
use_tag:
description: 'Release hdf5 version tag'
type: string
required: false
default: snapshot
use_name:
description: 'Examples Release Name'
type: string
required: false
default: hdf5-examples-snapshot
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel.
jobs:
log-the-inputs:
runs-on: ubuntu-latest
outputs:
rel_tag: ${{ steps.get-tag-name.outputs.RELEASE_TAG }}
rel_name: ${{ steps.get-tag-name.outputs.RELEASE_NAME }}
steps:
- name: Get tag name
id: get-tag-name
env:
TAG: ${{ inputs.use_tag }}
TAG_NAME: ${{ inputs.use_name }}
run: |
echo "RELEASE_TAG=$TAG" >> $GITHUB_OUTPUT
echo "RELEASE_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
create-files-ctest:
needs: log-the-inputs
runs-on: ubuntu-latest
outputs:
file_base: ${{ steps.set-file-base.outputs.FILE_BASE }}
steps:
- name: Set file base name
id: set-file-base
run: |
FILE_NAME_BASE=$(echo "${{ needs.log-the-inputs.outputs.rel_name }}")
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
uses: actions/checkout@v3
with:
path: hdf5-examples-master
- name: Zip Folder
run: |
zip -r ${{ steps.set-file-base.outputs.FILE_BASE }}.zip ./hdf5-examples-master
tar -zcvf ${{ steps.set-file-base.outputs.FILE_BASE }}.tar.gz ./hdf5-examples-master
- name: List files in the repository
run: |
ls -l ${{ github.workspace }}
ls $GITHUB_WORKSPACE
# Save files created by release script
- name: Save tgz-tarball
uses: actions/upload-artifact@v3
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
uses: actions/upload-artifact@v3
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`
call-workflow-ctest:
needs: [log-the-inputs, create-files-ctest]
uses: ./.github/workflows/cmake-ctest.yml
with:
use_hdf: ${{ needs.log-the-inputs.outputs.rel_tag }}
file_base: ${{ needs.create-files-ctest.outputs.file_base }}
use_environ: release
call-workflow-release:
needs: [log-the-inputs, create-files-ctest, call-workflow-ctest]
permissions:
contents: write # In order to allow tag creation
uses: ./.github/workflows/release-files.yml
with:
file_base: ${{ needs.create-files-ctest.outputs.file_base }}
file_branch: ${{ needs.log-the-inputs.outputs.rel_name }}
file_sha: ${{ needs.log-the-inputs.outputs.rel_tag }}
use_tag: ${{ needs.log-the-inputs.outputs.rel_tag }}
use_environ: release