diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4bc5cdd0..1688aabc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1089,6 +1089,9 @@ jobs: id-token: write attestations: write + env: + CCACHE_DIR: "${{ github.workspace }}/.ccache" + steps: - name: ⬇️ Install setup dependencies run: | @@ -1119,7 +1122,7 @@ jobs: uses: snapcore/action-build@v1 id: snapcraft with: - snapcraft-args: --mounts ccache="${{ github.workspace }}/.ccache" + snapcraft-args: --destructive-mode - name: 🗝️ Generate build provenance attestations uses: actions/attest-build-provenance@v2 diff --git a/dist/snap/snapcraft.yaml b/dist/snap/snapcraft.yaml index c4019789e..252ed10e9 100644 --- a/dist/snap/snapcraft.yaml +++ b/dist/snap/snapcraft.yaml @@ -37,7 +37,6 @@ parts: build-environment: - CC: /usr/bin/gcc-14 - CXX: /usr/bin/g++-14 - - CCACHE_DIR: "$CRAFT_PROJECT_DIR/../ccache" cmake-parameters: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_C_COMPILER_LAUNCHER=/usr/bin/ccache