From 98f7de3b52b0fea6abe364f9d0ce0bd4c459caf1 Mon Sep 17 00:00:00 2001 From: Jeremy Leibs Date: Thu, 20 Apr 2023 21:03:28 +0200 Subject: [PATCH] Only maintain a single manual-dispatch job for testing workflows --- .github/workflows/dispatch_lint.yml | 12 ------- .github/workflows/manual_dispatch.yml | 45 +++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 12 deletions(-) delete mode 100644 .github/workflows/dispatch_lint.yml create mode 100644 .github/workflows/manual_dispatch.yml diff --git a/.github/workflows/dispatch_lint.yml b/.github/workflows/dispatch_lint.yml deleted file mode 100644 index e5d51d97a6bd..000000000000 --- a/.github/workflows/dispatch_lint.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Manually dispatch linting - -on: - workflow_dispatch: - -jobs: - lint_all: - uses: ./.github/workflows/reusable_lint.yml - with: - SAVE_CACHE: false - secrets: - CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/manual_dispatch.yml b/.github/workflows/manual_dispatch.yml new file mode 100644 index 000000000000..20cc8e5f7dbc --- /dev/null +++ b/.github/workflows/manual_dispatch.yml @@ -0,0 +1,45 @@ +name: Manually Dispatch Workflows + +on: + workflow_dispatch: + inputs: + lints: + description: 'Run Lints' + type: boolean + required: true + default: true + build_linux: + description: 'Build/Test Linux' + type: boolean + required: true + default: true + build_macos: + description: 'Build/Test Mac' + type: boolean + required: true + default: false + build_windows: + description: 'Build/Test Win' + type: boolean + required: true + default: false + +jobs: + lint_all: + name: Lint All + if: ${{ github.event.inputs.lints }} + uses: ./.github/workflows/reusable_lint.yml + with: + SAVE_CACHE: false + secrets: + CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build_linux: + name: Build/Test Linux + if: ${{ github.event.inputs.build_linux }} + needs: [lint_all] + uses: ./.github/workflows/reusable_build_and_test.yml + with: + SAVE_CACHE: false + PLATFORM: linux + secrets: + CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}