From dc30dc16ae82222272b71e091912b3646e5d60f0 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Thu, 7 Sep 2023 15:56:49 +0200 Subject: [PATCH] add cmake run --- .github/workflows/test-build.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index f576e2b42..e1bce8b01 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -17,7 +17,7 @@ jobs: - name: Install dependencies run: | - dnf install -y cmake ccache + dnf install -y cmake ccache gcc-c++ libtoml - name: Prepare ccache timestamp id: ccache_cache_timestamp @@ -33,3 +33,13 @@ jobs: key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } } restore-keys: | ${ { matrix.config.name } }-ccache- + + - name: Create ccache symlinks to prioritize it over gcc + run: | + ln -s /usr/bin/ccache /usr/local/bin/gcc + ln -s /usr/bin/ccache /usr/local/bin/g++ + ln -s /usr/bin/ccache /usr/local/bin/cc + ln -s /usr/bin/ccache /usr/local/bin/c++ + + - name: Build dnf5 + run: cmake --build build