Skip to content

Commit

Permalink
Add ability to save cache to manual_disaptch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Apr 20, 2023
1 parent 9ad6201 commit 5c61b37
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/manual_dispatch.yml
Expand Up @@ -30,14 +30,19 @@ on:
type: boolean
required: true
default: false
save_cache:
description: 'Save Cache'
type: boolean
required: true
default: false

jobs:
lint_all:
name: Lint All
if: ${{ github.event.inputs.lints == 'true' }}
uses: ./.github/workflows/reusable_lint.yml
with:
SAVE_CACHE: false
SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }}
secrets:
CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -46,7 +51,7 @@ jobs:
if: ${{ github.event.inputs.build_linux == 'true' }}
uses: ./.github/workflows/reusable_build_and_test.yml
with:
SAVE_CACHE: false
SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }}
PLATFORM: linux
secrets:
CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -56,7 +61,7 @@ jobs:
if: ${{ github.event.inputs.build_windows == 'true'}}
uses: ./.github/workflows/reusable_build_and_test.yml
with:
SAVE_CACHE: false
SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }}
PLATFORM: windows
secrets:
CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -66,7 +71,7 @@ jobs:
if: ${{ github.event.inputs.build_macos_arm == 'true' }}
uses: ./.github/workflows/reusable_build_and_test.yml
with:
SAVE_CACHE: false
SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }}
PLATFORM: macos-arm
secrets:
CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -76,7 +81,7 @@ jobs:
if: ${{ github.event.inputs.build_macos_intel == 'true' }}
uses: ./.github/workflows/reusable_build_and_test.yml
with:
SAVE_CACHE: false
SAVE_CACHE: ${{ github.event.inputs.save_cache == 'true' }}
PLATFORM: macos-intel
secrets:
CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5c61b37

Please sign in to comment.