Skip to content

Commit

Permalink
Create a callable workflow to trigger all builds
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 25, 2024
1 parent 68a28f5 commit 626675e
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build & Test - all

on:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
required: false
default: false
type: boolean
workflow_dispatch:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
required: false
default: false
type: boolean

jobs:
curl:
uses: ./.github/workflows/curl.yml
with:
build_main: ${{ github.event.inputs.build_main }}

httpd:
uses: ./.github/workflows/httpd.yml
with:
build_main: ${{ github.event.inputs.build_main }}

nginx:
uses: ./.github/workflows/nginx.yml
with:
build_main: ${{ github.event.inputs.build_main }}

openssh:
uses: ./.github/workflows/openssh.yml
with:
build_main: ${{ github.event.inputs.build_main }}

openssl3:
uses: ./.github/workflows/openssl3.yml
with:
build_main: ${{ github.event.inputs.build_main }}
2 changes: 1 addition & 1 deletion .github/workflows/curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/curl.yml', 'curl/**']
workflow_dispatch:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/httpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/httpd.yml', 'httpd/**']
workflow_dispatch:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/nginx.yml', 'nginx/**']
workflow_dispatch:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/openssh.yml', 'openssh/**']
workflow_dispatch:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openssl3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/openssl3.yml', 'openssl3/**']
workflow_dispatch:
workflow_call:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
Expand Down

0 comments on commit 626675e

Please sign in to comment.