From 626675e9679fff3034a688b2331173789b964960 Mon Sep 17 00:00:00 2001 From: Alex Bozarth Date: Mon, 25 Nov 2024 13:37:11 -0600 Subject: [PATCH] Create a callable workflow to trigger all builds Signed-off-by: Alex Bozarth --- .github/workflows/build.yml | 43 ++++++++++++++++++++++++++++++++++ .github/workflows/curl.yml | 2 +- .github/workflows/httpd.yml | 2 +- .github/workflows/nginx.yml | 2 +- .github/workflows/openssh.yml | 2 +- .github/workflows/openssl3.yml | 2 +- 6 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a05d91e --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/curl.yml b/.github/workflows/curl.yml index b64c004..87ab966 100644 --- a/.github/workflows/curl.yml +++ b/.github/workflows/curl.yml @@ -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" diff --git a/.github/workflows/httpd.yml b/.github/workflows/httpd.yml index 25e4a42..2c11dfb 100644 --- a/.github/workflows/httpd.yml +++ b/.github/workflows/httpd.yml @@ -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" diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index 117efff..3913b23 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -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" diff --git a/.github/workflows/openssh.yml b/.github/workflows/openssh.yml index 678dc4c..66648fb 100644 --- a/.github/workflows/openssh.yml +++ b/.github/workflows/openssh.yml @@ -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" diff --git a/.github/workflows/openssl3.yml b/.github/workflows/openssl3.yml index 1ff103f..ac39422 100644 --- a/.github/workflows/openssl3.yml +++ b/.github/workflows/openssl3.yml @@ -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"