Add ccache Github workflow #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: Install ccache | |
run: dnf install ccache -y | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
- name: Build with ccache | |
run: | | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"; \ | |
mkdir build; cd build; cmake ..; make |