From a04cc108f6ee7d8b63f818638e874ba011a72a4f Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Thu, 7 Sep 2023 15:15:00 +0200 Subject: [PATCH] add ccache workflow --- .github/workflows/test-build.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test-build.yaml diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml new file mode 100644 index 000000000..f40ebb7a7 --- /dev/null +++ b/.github/workflows/test-build.yaml @@ -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/ccache-action@v1.2 + 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