Skip to content

Commit

Permalink
CI: Add manual trigger with options to ignore cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed Mar 14, 2024
1 parent 35dd322 commit 217585f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
ignore_buildcache:
description: 'Ignore buildcache'
required: true
type: boolean
ignore_deps_cache:
description: 'Ignore dependencies cache'
required: true
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -133,6 +143,14 @@ jobs:
key: deps-${{ hashFiles('.pkg') }}
restore-keys: deps-

- name: Delete buildcache
if: ${{ github.event_name == 'workflow_dispatch' && inputs.ignore_buildcache }}
run: rm -rf ${{ github.workspace }}/.buildcache

- name: Delete dependencies
if: ${{ github.event_name == 'workflow_dispatch' && inputs.ignore_deps_cache }}
run: rm -rf ${{ github.workspace }}/deps

# ==== BUILD ====
- name: CMake
run: cmake -S . -B build --preset=${{ matrix.config.preset }}
Expand Down

0 comments on commit 217585f

Please sign in to comment.