2023-04-30 01:36:17 +08:00
|
|
|
name: hdf5 dev daily build
|
|
|
|
|
2024-06-24 20:59:29 +08:00
|
|
|
# Triggers the workflow on a schedule or on demand
|
2023-04-30 01:36:17 +08:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "6 0 * * *"
|
|
|
|
|
2023-06-16 22:57:14 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-04-30 01:36:17 +08:00
|
|
|
jobs:
|
2024-02-16 05:32:01 +08:00
|
|
|
get-old-names:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
hdf5-name: ${{ steps.gethdf5base.outputs.HDF5_NAME_BASE }}
|
|
|
|
|
|
|
|
steps:
|
2024-07-03 04:06:11 +08:00
|
|
|
- uses: actions/checkout@v4.1.7
|
2024-02-16 05:32:01 +08:00
|
|
|
|
|
|
|
- name: Get hdf5 release base name
|
|
|
|
uses: dsaltares/fetch-gh-release-asset@master
|
|
|
|
with:
|
|
|
|
version: 'tags/snapshot'
|
|
|
|
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 }}."
|
|
|
|
|
2023-04-30 01:36:17 +08:00
|
|
|
call-workflow-tarball:
|
|
|
|
uses: ./.github/workflows/tarball.yml
|
2023-06-30 04:40:27 +08:00
|
|
|
with:
|
2024-03-22 00:12:50 +08:00
|
|
|
use_tag: snapshot
|
2023-06-30 04:40:27 +08:00
|
|
|
use_environ: snapshots
|
2023-04-30 01:36:17 +08:00
|
|
|
|
|
|
|
call-workflow-ctest:
|
|
|
|
needs: call-workflow-tarball
|
|
|
|
uses: ./.github/workflows/cmake-ctest.yml
|
|
|
|
with:
|
2024-01-29 21:38:54 +08:00
|
|
|
preset_name: ci-StdShar
|
2024-03-25 09:10:09 +08:00
|
|
|
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
|
|
|
|
# use_tag: snapshot
|
2024-03-09 06:13:10 +08:00
|
|
|
use_environ: snapshots
|
2024-08-09 23:41:53 +08:00
|
|
|
secrets:
|
2024-09-05 22:15:12 +08:00
|
|
|
APPLE_CERTS_BASE64: ${{ secrets.APPLE_CERTS_BASE64 }}
|
|
|
|
APPLE_CERTS_BASE64_PASSWD: ${{ secrets.APPLE_CERTS_BASE64_PASSWD }}
|
|
|
|
KEYCHAIN_PASSWD: ${{ secrets.KEYCHAIN_PASSWD }}
|
2024-08-09 23:41:53 +08:00
|
|
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
|
|
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
|
|
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
|
|
|
AZURE_ENDPOINT: ${{ secrets.AZURE_ENDPOINT }}
|
|
|
|
AZURE_CODE_SIGNING_NAME: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
|
|
|
|
AZURE_CERT_PROFILE_NAME: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
|
2023-04-30 01:36:17 +08:00
|
|
|
if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
|
|
|
|
|
2024-02-08 21:58:08 +08:00
|
|
|
call-workflow-abi:
|
2023-05-26 01:24:54 +08:00
|
|
|
needs: [call-workflow-tarball, call-workflow-ctest]
|
2024-02-08 21:58:08 +08:00
|
|
|
uses: ./.github/workflows/abi-report.yml
|
|
|
|
with:
|
2024-06-25 01:01:39 +08:00
|
|
|
file_ref: '1.14.4.3'
|
2024-02-08 21:58:08 +08:00
|
|
|
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
|
|
|
|
use_tag: snapshot
|
|
|
|
use_environ: snapshots
|
|
|
|
if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
|
|
|
|
|
|
|
|
call-workflow-release:
|
2024-08-14 03:43:28 +08:00
|
|
|
needs: [get-old-names, call-workflow-tarball, call-workflow-ctest, call-workflow-abi]
|
2023-06-16 22:57:14 +08:00
|
|
|
permissions:
|
|
|
|
contents: write # In order to allow tag creation
|
2023-06-30 04:40:27 +08:00
|
|
|
uses: ./.github/workflows/release-files.yml
|
2023-05-26 01:24:54 +08:00
|
|
|
with:
|
|
|
|
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
|
|
|
|
file_branch: ${{ needs.call-workflow-tarball.outputs.file_branch }}
|
|
|
|
file_sha: ${{ needs.call-workflow-tarball.outputs.file_sha }}
|
2023-06-30 04:40:27 +08:00
|
|
|
use_tag: snapshot
|
|
|
|
use_environ: snapshots
|
2023-05-26 01:24:54 +08:00
|
|
|
if: ${{ needs.call-workflow-tarball.outputs.has_changes == 'true' }}
|
|
|
|
|
2024-02-16 05:32:01 +08:00
|
|
|
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
|
|
|
|
use_environ: snapshots
|
2024-08-15 05:22:50 +08:00
|
|
|
if: ${{ (needs.call-workflow-tarball.outputs.has_changes == 'true') && (needs.get-old-names.outputs.hdf5-name != needs.call-workflow-tarball.outputs.file_base) }}
|
2024-02-16 05:32:01 +08:00
|
|
|
|