From b13c8bb29712c3969b4b232d9fa36cbac1039808 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Tue, 12 Sep 2023 10:36:56 -0500 Subject: [PATCH] split out autools/cmake to callable workflows --- .github/workflows/autotools.yml | 49 +++++++++++++++++++++++++++++ .github/workflows/cmake.yml | 41 ++++++++++++++++++++++++ .github/workflows/main.yml | 55 ++------------------------------- 3 files changed, 92 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/autotools.yml create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/autotools.yml b/.github/workflows/autotools.yml new file mode 100644 index 00000000000..f9d70435589 --- /dev/null +++ b/.github/workflows/autotools.yml @@ -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" diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 00000000000..67621ca6b51 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -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" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4622aa0a099..45363d00576 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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