Skip to content

Commit

Permalink
split out autools/cmake to callable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Sep 12, 2023
1 parent 6865223 commit b13c8bb
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 53 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: hdf5 dev autools CI

# Controls when the action will run. Triggers the workflow on push or pull request
on:
workflow_call:

permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:
workflow-autotools:
name: "Autotools Workflows"
call-workflow-special-autotools:
uses: ./.github/workflows/main-auto-spc.yml

call-parallel-special-autotools:
uses: ./.github/workflows/main-auto-par.yml

call-debug-thread-autotools:
uses: ./.github/workflows/main-auto.yml
with:
thread_safety: true
build_mode: "debug"

call-release-thread-autotools:
uses: ./.github/workflows/main-auto.yml
with:
thread_safety: true
build_mode: "production"

call-debug-autotools:
uses: ./.github/workflows/main-auto.yml
with:
thread_safety: false
build_mode: "debug"

call-release-autotools:
uses: ./.github/workflows/main-auto.yml
with:
thread_safety: false
build_mode: "production"

call-release-auto-intel:
uses: ./.github/workflows/intel-auto.yml
with:
build_mode: "production"
41 changes: 41 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: hdf5 dev cmake CI

# Controls when the action will run. Triggers the workflow on push or pull request
on:
workflow_call:

permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:
call-debug-thread-cmake:
uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: true
build_mode: "Debug"

call-release-thread-cmake:
uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: true
build_mode: "Release"

call-debug-cmake:
uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: false
build_mode: "Debug"

call-release-cmake:
uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: false
build_mode: "Release"

call-release-cmake-intel:
uses: ./.github/workflows/intel-cmake.yml
with:
build_mode: "Release"
55 changes: 2 additions & 53 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,60 +29,9 @@ permissions:
jobs:
workflow-autotools:
name: "Autotools Workflows"
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/main-auto-spc.yml

- uses: ./.github/workflows/main-auto-par.yml

- uses: ./.github/workflows/main-auto.yml
with:
thread_safety: true
build_mode: "debug"

- uses: ./.github/workflows/main-auto.yml
with:
thread_safety: true
build_mode: "production"

- uses: ./.github/workflows/main-auto.yml
with:
thread_safety: false
build_mode: "debug"

- uses: ./.github/workflows/main-auto.yml
with:
thread_safety: false
build_mode: "production"

- uses: ./.github/workflows/intel-auto.yml
with:
build_mode: "production"
uses: ./.github/workflows/autotools.yml

workflow-cmake:
name: "CMake Workflows"
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: true
build_mode: "Debug"

- uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: true
build_mode: "Release"

- uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: false
build_mode: "Debug"

- uses: ./.github/workflows/main-cmake.yml
with:
thread_safety: false
build_mode: "Release"

- uses: ./.github/workflows/intel-cmake.yml
with:
build_mode: "Release"
uses: ./.github/workflows/cmake.yml

0 comments on commit b13c8bb

Please sign in to comment.