Skip to content

Commit

Permalink
Testing 'workflow_call'
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Nov 15, 2023
1 parent 957e71b commit c83eb9a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,7 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
submodules: true # recursive

- name: Download Ninja
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -20,7 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
submodules: true # recursive

- name: Download Ninja
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/single_include_header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ jobs:
git config --global user.name 'github_actions'
git config --global user.email '[email protected]'
git commit -am "Automated single-include header generation"
git push
git push
run-msvc:
uses: ./.github/workflows/msvc.yml

run-gcc:
uses: ./.github/workflows/gcc.yml

run-clang:
uses: ./.github/workflows/clang.yml

0 comments on commit c83eb9a

Please sign in to comment.