Skip to content

Commit

Permalink
Update steps (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored Jun 2, 2024
1 parent e480ce5 commit 7adf5e1
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 18 deletions.
53 changes: 41 additions & 12 deletions .github/workflows/ant-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]

- name: Get hdf4 snapshot
- name: Get hdf4 release
if: ${{ (inputs.use_environ == 'release') }}
uses: dsaltares/fetch-gh-release-asset@master
with:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
echo "HDFLIB_ENV=$HDFDIR" >> $GITHUB_OUTPUT
shell: bash

- name: Get hdf5 snapshot
- name: Get hdf5 release
if: ${{ (inputs.use_environ == 'release') }}
uses: dsaltares/fetch-gh-release-asset@master
with:
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
ant -noinput -buildfile build.xml binaryAppPackage
shell: bash

- name: Rename snapshot binary base name
- name: Rename snapshot binary-app base name
id: ren-basename
if: ${{ (inputs.use_environ == 'snapshots') }}
run: |
Expand All @@ -215,12 +215,22 @@ jobs:
shell: pwsh

# Save files created by ctest script
- name: Save published binary (Win)
- name: Save published binary-app (Win)
uses: actions/upload-artifact@v4
with:
name: zip-win-vs2022-app-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}App-win64.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

# Save release files created by ctest script
- name: Save published release-app binary (Win)
uses: actions/upload-artifact@v4
with:
name: zip-win-vs2022-app-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}App-win64.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand All @@ -242,7 +252,7 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Get hdf4 snapshot
- name: Get hdf4 release
if: ${{ (inputs.use_environ == 'release') }}
uses: dsaltares/fetch-gh-release-asset@master
with:
Expand Down Expand Up @@ -353,7 +363,7 @@ jobs:
HDF5LIBS: ${{ steps.set-hdf5lib-name.outputs.HDF5LIB_ENV }}
run: ant -noinput -buildfile build.xml binaryAppPackage

- name: Rename snapshot binary base name
- name: Rename snapshot binary-app base name
id: ren-basename
if: ${{ (inputs.use_environ == 'snapshots') }}
run: |
Expand All @@ -367,12 +377,21 @@ jobs:
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published binary (Linux)
- name: Save published snapshot-app binary (Linux)
uses: actions/upload-artifact@v4
with:
name: tgz-ubuntu-2204-app-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}App-Linux-x86_64.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

- name: Save published release-app binary (Linux)
uses: actions/upload-artifact@v4
with:
name: tgz-ubuntu-2204-app-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}App-Linux-x86_64.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand Down Expand Up @@ -442,7 +461,7 @@ jobs:
version: 'tags/snapshot'
file: '${{ inputs.use_hdf }}-osx.tar.gz'

- name: Get hdf4 release osx12
- name: Get hdf4 snapshot osx12
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand Down Expand Up @@ -489,7 +508,7 @@ jobs:
version: 'tags/${{ inputs.use_hdf5 }}'
file: '${{ inputs.name_hdf5 }}-osx12.tar.gz'

- name: Get hdf5 release
- name: Get hdf5 snapshot
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand All @@ -498,7 +517,7 @@ jobs:
version: 'tags/snapshot'
file: '${{ inputs.name_hdf5 }}-osx.tar.gz'

- name: Get hdf5 release osx12
- name: Get hdf5 snapshot osx12
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand Down Expand Up @@ -571,7 +590,7 @@ jobs:
NOTARY_KEY: ${{ vars.NOTARY_KEY }}
run: ant -noinput -buildfile build.xml binaryAppPackage

- name: Rename snapshot binary base name
- name: Rename snapshot binary-app base name
id: ren-basename
if: ${{ (inputs.use_environ == 'snapshots') }}
run: |
Expand All @@ -585,12 +604,22 @@ jobs:
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published App-binary (mac)
- name: Save published snapshot-app binary (mac)
uses: actions/upload-artifact@v4
with:
name: tgz-osx-app-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}App-Darwin.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

# Save release files created by ctest script
- name: Save published release-app binary (mac)
uses: actions/upload-artifact@v4
with:
name: tgz-osx-app-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}App-Darwin.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ jobs:
name: zip-win-vs2022-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}-win64.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

# Save release files created by ctest script
- name: Save published release binary (Win)
uses: actions/upload-artifact@v4
with:
name: zip-win-vs2022-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}-win64.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand Down Expand Up @@ -367,12 +377,21 @@ jobs:
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published binary (Linux)
- name: Save published snapshot binary (Linux)
uses: actions/upload-artifact@v4
with:
name: tgz-ubuntu-2204-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}-Linux-x86_64.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

- name: Save published release binary (Linux)
uses: actions/upload-artifact@v4
with:
name: tgz-ubuntu-2204-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}-Linux-x86_64.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand Down Expand Up @@ -433,7 +452,7 @@ jobs:
version: 'tags/${{ inputs.use_hdf }}'
file: '${{ inputs.use_hdf }}-osx12.tar.gz'

- name: Get hdf4 release
- name: Get hdf4 snapshot
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand All @@ -442,7 +461,7 @@ jobs:
version: 'tags/snapshot'
file: '${{ inputs.use_hdf }}-osx.tar.gz'

- name: Get hdf4 release osx12
- name: Get hdf4 snapshot osx12
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand Down Expand Up @@ -489,7 +508,7 @@ jobs:
version: 'tags/${{ inputs.use_hdf5 }}'
file: '${{ inputs.name_hdf5 }}-osx12.tar.gz'

- name: Get hdf5 release
- name: Get hdf5 snapshot
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand All @@ -498,7 +517,7 @@ jobs:
version: 'tags/snapshot'
file: '${{ inputs.name_hdf5 }}-osx.tar.gz'

- name: Get hdf5 release osx12
- name: Get hdf5 snapshot osx12
continue-on-error: true
if: ${{ (inputs.use_environ == 'snapshots') }}
uses: dsaltares/fetch-gh-release-asset@master
Expand Down Expand Up @@ -585,12 +604,22 @@ jobs:
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published binary (mac)
- name: Save published snapshot binary (mac)
uses: actions/upload-artifact@v4
with:
name: tgz-osx-binary
path: ${{ github.workspace }}/build/dist/${{ steps.set-file-base.outputs.FILE_BASE }}-Darwin.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'snapshots') }}

# Save release files created by ctest script
- name: Save published release binary (mac)
uses: actions/upload-artifact@v4
with:
name: tgz-osx-binary
path: ${{ github.workspace }}/build/dist/${{ inputs.snap_name }}-Darwin.tar.gz
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
if: ${{ (inputs.use_environ == 'release') }}

- name: Test with Ant
env:
Expand Down

0 comments on commit 7adf5e1

Please sign in to comment.