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