Skip to content

Commit

Permalink
add ccache workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Sep 7, 2023
1 parent 6d7cb37 commit 4ebdb34
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: build dnf5 with ccache to check for quick build errors
on:
pull_request:
workflow_dispatch:

jobs:
build-with-ccache:
runs-on: ubuntu-latest
container:
image: fedora:rawhide

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/[email protected]
with:
path: .ccache
key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }
restore-keys: |
${ { matrix.config.name } }-ccache-

0 comments on commit 4ebdb34

Please sign in to comment.