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 a04cc10
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
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: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.os }}
- name: Build with ccache
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"; \
mkdir build; cd build; cmake ..; make

0 comments on commit a04cc10

Please sign in to comment.