mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
| Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.1` | `6.0.2` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.0` | `7.0.1` | | [actions/cache](https://github.com/actions/cache) | `5.0.4` | `5.0.5` | | [lukka/get-cmake](https://github.com/lukka/get-cmake) | `4.3.1` | `4.3.2` | | [dorny/paths-filter](https://github.com/dorny/paths-filter) | `3.0.2` | `4.0.1` | | [github/codeql-action](https://github.com/github/codeql-action) | `4.32.4` | `4.35.3` | | [cygwin/cygwin-install-action](https://github.com/cygwin/cygwin-install-action) | `b09c8ce7e6add6720f12f30042d7c972cf4a75ec` | `4ef15ca7fd18a18f1000989fcfd968e06d146ce8` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `6.0.0` | `6.1.0` | | [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) | `1.4.4` | `1.4.5` | | [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) | `2.7.0` | `3.0.1` | | [msys2/setup-msys2](https://github.com/msys2/setup-msys2) | `2.31.0` | `2.31.1` | | [robinraju/release-downloader](https://github.com/robinraju/release-downloader) | `1.12` | `1.13` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `2.6.1` | `3.0.0` |
304 lines
14 KiB
YAML
304 lines
14 KiB
YAML
name: hdf5 dev release-files
|
|
|
|
# Triggers the workflow on a call from another workflow
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
use_tag:
|
|
description: 'Release version tag'
|
|
type: string
|
|
required: false
|
|
default: snapshot
|
|
use_environ:
|
|
description: 'Environment to locate files'
|
|
type: string
|
|
required: true
|
|
default: snapshots
|
|
file_base:
|
|
description: "The common base name of the source tarballs"
|
|
required: true
|
|
type: string
|
|
file_branch:
|
|
description: "The branch name for the source tarballs"
|
|
required: true
|
|
type: string
|
|
file_sha:
|
|
description: "The sha for the source tarballs"
|
|
required: true
|
|
type: string
|
|
|
|
# Minimal permissions to be inherited by any job that doesn't declare its own permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
|
|
# Previous workflows must pass to get here so tag the commit that created the files
|
|
jobs:
|
|
create-tag:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # In order to allow tag creation
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- name: Get Sources
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
ref: '${{ github.head_ref || github.ref_name }}'
|
|
|
|
- uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72 # v1.7.2
|
|
id: "tag_create"
|
|
with:
|
|
commit_sha: ${{ inputs.file_sha }}
|
|
tag: "${{ inputs.use_tag }}"
|
|
force_push_tag: false
|
|
tag_exists_error: false
|
|
message: "Latest snapshot"
|
|
|
|
# Print result using the action output.
|
|
- run: |
|
|
echo "Tag already present: ${{ steps.tag_create.outputs.tag_exists }}"
|
|
|
|
PreRelease-getfiles:
|
|
runs-on: ubuntu-latest
|
|
needs: create-tag
|
|
environment: ${{ inputs.use_environ }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Get file base name
|
|
id: get-file-base
|
|
run: |
|
|
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
|
|
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
|
|
|
# Get files created by tarball script
|
|
- name: Get doxygen (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: docs-doxygen
|
|
path: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
|
|
|
|
- name: Zip Folder
|
|
run: zip -r ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip ./${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
|
|
|
|
- name: Get tgz-tarball (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get zip-tarball (Windows)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: zip-tarball
|
|
path: ${{ github.workspace }}
|
|
|
|
# Get files created by cmake-ctest script
|
|
- name: Get published binary (Windows)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: zip-vs2022_cl-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published msi binary (Windows)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: msi-vs2022_cl-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published binary (MacOS)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-macos14_clang-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published dmg binary (MacOS)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-macos14_clang-dmg-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published binary (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-ubuntu-2404_gcc-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published deb binary (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: deb-ubuntu-2404_gcc-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published rpm binary (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: rpm-ubuntu-2404_gcc-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published binary (Linux S3)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-ubuntu-2404_gcc_s3-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published binary (Windows_intel)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: zip-vs2022_intel-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published msi binary (Windows_intel)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: msi-vs2022_intel-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published binary (Linux_intel)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-ubuntu-2404_intel-binary
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published abi reports (Linux)
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: abi-reports
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published nonversioned source (tgz)
|
|
if: ${{ (inputs.use_environ == 'release') }}
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: tgz-tarball-nover
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Get published nonversioned source (zip)
|
|
if: ${{ (inputs.use_environ == 'release') }}
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: zip-tarball-nover
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: Create sha256 sums for files
|
|
run: |
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip > ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.zip >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.dmg >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.deb >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.rpm >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc_s3.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.zip >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.msi >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_intel.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.zip >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.msi >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum ${{ steps.get-file-base.outputs.FILE_BASE }}.html.abi.reports.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
|
|
- name: Create sha256 sums for files for nonversioned files
|
|
if: ${{ (inputs.use_environ == 'release') }}
|
|
run: |
|
|
sha256sum hdf5.zip >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
sha256sum hdf5.tar.gz >> ${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
|
|
- name: Store snapshot name
|
|
run: |
|
|
echo "${{ steps.get-file-base.outputs.FILE_BASE }}" > ./last-file.txt
|
|
|
|
- name: Get description.txt for release/snapshot
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: description.txt
|
|
path: ${{ github.workspace }}
|
|
|
|
- name: PreRelease tag
|
|
id: create_prerelease
|
|
if: ${{ (inputs.use_environ == 'snapshots') }}
|
|
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
|
|
with:
|
|
tag_name: "${{ inputs.use_tag }}"
|
|
prerelease: true
|
|
body_path: description.txt
|
|
files: |
|
|
last-file.txt
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.dmg
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.deb
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.rpm
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc_s3.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.msi
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_intel.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.msi
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.html.abi.reports.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
- name: Release tag name
|
|
id: create_release_tag_name
|
|
if: ${{ (inputs.use_environ == 'release') }}
|
|
run: |
|
|
if [[ '${{ inputs.use_tag }}' == 'snapshot' ]]
|
|
then
|
|
TAG_NAME_BASE=$(echo "snapshot")
|
|
else
|
|
TAG_NAME_BASE=$(echo "${{ inputs.use_tag }}")
|
|
fi
|
|
echo "TAG_BASE=$TAG_NAME_BASE" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
- name: Release tag
|
|
id: create_release
|
|
if: ${{ (inputs.use_environ == 'release') }}
|
|
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
|
|
with:
|
|
tag_name: "${{ steps.create_release_tag_name.outputs.TAG_BASE }}"
|
|
name: "HDF5 Release ${{ inputs.use_tag }}"
|
|
draft: true
|
|
prerelease: false
|
|
body_path: description.txt
|
|
files: |
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.zip
|
|
hdf5.tar.gz
|
|
hdf5.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-macos14_clang.dmg
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.deb
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc.rpm
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_gcc_s3.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_cl.msi
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2404_intel.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.zip
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}-win-vs2022_intel.msi
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.html.abi.reports.tar.gz
|
|
${{ steps.get-file-base.outputs.FILE_BASE }}.sha256sums.txt
|
|
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
|
|
|
|
- name: List files for the space (Linux)
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
ls ${{ runner.workspace }}
|
|
|
|
- name: dev-only-docs
|
|
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
|
|
destination_dir: develop
|
|
|