mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
git: More ccache fixes for Snap and RPM
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -1045,7 +1045,6 @@ jobs:
|
||||
config_opts['plugin_conf']['ccache_enable'] = True
|
||||
config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '1G'
|
||||
config_opts['plugin_conf']['ccache_opts']['compress'] = True
|
||||
config_opts['plugin_conf']['ccache_opts']['dir'] = "${{ github.workspace }}/.ccache"
|
||||
EOT
|
||||
|
||||
# Fedora cmake build (in imhex.spec)
|
||||
@@ -1088,10 +1087,6 @@ jobs:
|
||||
permissions:
|
||||
id-token: write
|
||||
attestations: write
|
||||
|
||||
env:
|
||||
CCACHE_DIR: "${{ github.workspace }}/.ccache"
|
||||
|
||||
steps:
|
||||
- name: ⬇️ Install setup dependencies
|
||||
run: |
|
||||
@@ -1110,7 +1105,8 @@ jobs:
|
||||
- name: 📜 Move snap directory to root
|
||||
run: |
|
||||
mkdir -p ./snap
|
||||
envsubst '${IMHEX_VERSION}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
|
||||
echo "CCACHE=ccache" >> $GITHUB_ENV
|
||||
envsubst '${IMHEX_VERSION},${CCACHE}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
|
||||
|
||||
- name: 📜 Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
5
dist/snap/snapcraft.yaml
vendored
5
dist/snap/snapcraft.yaml
vendored
@@ -39,13 +39,12 @@ parts:
|
||||
- CXX: /usr/bin/g++-14
|
||||
cmake-parameters:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_C_COMPILER_LAUNCHER=/usr/bin/ccache
|
||||
- -DCMAKE_CXX_COMPILER_LAUNCHER=/usr/bin/ccache
|
||||
- -DCMAKE_C_COMPILER_LAUNCHER=${CCACHE}
|
||||
- -DCMAKE_CXX_COMPILER_LAUNCHER=${CCACHE}
|
||||
cmake-generator: Ninja
|
||||
build-packages:
|
||||
- cmake
|
||||
- ninja-build
|
||||
- ccache
|
||||
- gcc-14
|
||||
- g++-14
|
||||
- git
|
||||
|
||||
Reference in New Issue
Block a user