Skip to content

Commit

Permalink
Add condition to run a clean build only when cache fails
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Sep 14, 2023
1 parent aa48112 commit 605efab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ccache-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
run: CXX=${{ steps.configure_compiler.outputs.cxx }} CC=${{ steps.configure_compiler.outputs.cc }} cmake -S . -B build

- name: Build DNF5
id: ccache-build
run: cmake --build build

- name: Display CCache statistics
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
package-build:
name: Package Build
if: ${{ failure() && steps.ccache-build.conclusion == 'failure' }}
runs-on: ubuntu-latest
container: ghcr.io/rpm-software-management/dnf-ci-host
strategy:
Expand Down

0 comments on commit 605efab

Please sign in to comment.