Skip to content

Commit

Permalink
Only maintain a single manual-dispatch job for testing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Apr 20, 2023
1 parent 4848f98 commit 98f7de3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/dispatch_lint.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/manual_dispatch.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 98f7de3

Please sign in to comment.