git: Build snaps in destructive mode

This commit is contained in:
WerWolv
2025-07-24 00:47:50 +02:00
parent e1a91d179a
commit e79116499e
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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