From 217585f424f6865693dd4aaa1a16f85daa574863 Mon Sep 17 00:00:00 2001 From: Pablo Hoch Date: Thu, 14 Mar 2024 18:15:42 +0100 Subject: [PATCH] CI: Add manual trigger with options to ignore cache --- .github/workflows/unix.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/unix.yml b/.github/workflows/unix.yml index f3372c2..80376e7 100644 --- a/.github/workflows/unix.yml +++ b/.github/workflows/unix.yml @@ -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 }} @@ -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 }}