diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 71b49ec..2a92e10 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/cache@v4 with: path: "**/cpm_modules" - key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} + key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }} # - name: install ninja # sudo apt-get install ninja-build @@ -46,7 +46,7 @@ jobs: - name: build and install library run: | - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache sudo cmake --build build --target install - name: configure diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 947edbe..2b5592b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -34,7 +34,7 @@ - uses: actions/cache@v4 with: path: "**/cpm_modules" - key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} + key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }} - name: ccache uses: hendrikmuhs/ccache-action@v1.2.14 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1cfa44e..285a447 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/cache@v4 with: path: "**/cpm_modules" - key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} + key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }} - name: ccache uses: hendrikmuhs/ccache-action@v1.2.14 @@ -34,13 +34,16 @@ jobs: key: ${{ github.workflow }} - name: configure + shell: bash run: | - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - name: build + shell: bash run: cmake --build build --config Release -j4 - name: test + shell: bash run: | cd build ctest --build-config Release --output-on-failure