diff --git a/.github/workflows/clang.yml b/.github/workflows/clang.yml index c4245783..144fd457 100644 --- a/.github/workflows/clang.yml +++ b/.github/workflows/clang.yml @@ -1,15 +1,10 @@ name: Clang 16-18 (module) -on: - workflow_run: - workflows: [Generate single-include header] - types: - - completed +on: workflow_call jobs: clang: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: fail-fast: true @@ -21,7 +16,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.workflow_run.head_branch }} submodules: true # recursive - name: Download Ninja diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml index eccd9d92..aa7eab09 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/gcc.yml @@ -1,15 +1,10 @@ name: GCC 11/12/13 -on: - workflow_run: - workflows: [Generate single-include header] - types: - - completed +on: workflow_call jobs: gcc: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: fail-fast: true @@ -20,7 +15,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.workflow_run.head_branch }} submodules: true # recursive - name: Download Ninja diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index 24da7eca..465825f5 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -1,15 +1,10 @@ name: MSVC 2022 (v14.3) -on: - workflow_run: - workflows: [Generate single-include header] - types: - - completed +on: workflow_call jobs: msvc: runs-on: windows-2022 - if: ${{ github.event.workflow_run.conclusion == 'success' }} strategy: fail-fast: true @@ -21,13 +16,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.workflow_run.head_branch }} submodules: true # recursive - - name: Branch name - shell: cmd - run: echo ${{ github.event.workflow_run.head_branch }} - - name: Download Ninja shell: cmake -P {0} run: | diff --git a/.github/workflows/single_include_header.yml b/.github/workflows/single_include_header.yml index a1f0adfe..4157bb96 100644 --- a/.github/workflows/single_include_header.yml +++ b/.github/workflows/single_include_header.yml @@ -27,4 +27,14 @@ jobs: git config --global user.name 'github_actions' git config --global user.email 'github_actions@users.noreply.github.com' git commit -am "Automated single-include header generation" - git push \ No newline at end of file + git push + + run-msvc: + uses: ./.github/workflows/msvc.yml + + run-gcc: + uses: ./.github/workflows/gcc.yml + + run-clang: + uses: ./.github/workflows/clang.yml + \ No newline at end of file