Skip to content

Convert main.yml CI into callable workflows #4613

Convert main.yml CI into callable workflows

Convert main.yml CI into callable workflows #4613

Workflow file for this run

name: hdf5 dev CI
# Controls when the action will run. Triggers the workflow on push or pull request
on:
workflow_dispatch:
push:
pull_request:
branches: [ develop ]
paths-ignore:
- '.github/CODEOWNERS'
- '.github/FUNDING.yml'
- 'doc/**'
- 'release_docs/**'
- 'ACKNOWLEDGEMENTS'
- 'COPYING**'
- '**.md'
# Using concurrency to cancel any in-progress job or run
concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }}
cancel-in-progress: true
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"
steps:
- uses: ./.github/workflows/main-auto-spc.yml
- uses: ./.github/workflows/main-auto-par.yml
uses: ./.github/workflows/main-auto.yml

Check failure on line 37 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / hdf5 dev CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 37, Col: 9): 'uses' is already defined .github/workflows/main.yml (Line: 31, Col: 5): Required property is missing: runs-on
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"
workflow-cmake:
name: "CMake Workflows"
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"