ci: fix ccache dir path — runner.temp is not a valid expression context
Point CCACHE_DIR and the cache action at a fixed workspace directory instead; checkout cleans untracked files before the restore, so the ordering is safe.
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
os: [warp-ubuntu-latest-x64-8x, warp-macos-15-arm64-12x, warp-windows-latest-x64-8x]
|
os: [warp-ubuntu-latest-x64-8x, warp-macos-15-arm64-12x, warp-windows-latest-x64-8x]
|
||||||
env:
|
env:
|
||||||
CMAKE_BUILD_TYPE: Release
|
CMAKE_BUILD_TYPE: Release
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
CCACHE_MAXSIZE: 1G
|
CCACHE_MAXSIZE: 1G
|
||||||
# Enable OFX integration tests that require external plugin bundles
|
# Enable OFX integration tests that require external plugin bundles
|
||||||
RUN_OFX_ITEST: "1"
|
RUN_OFX_ITEST: "1"
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
uses: WarpBuilds/cache@v1
|
uses: WarpBuilds/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.temp }}/ccache
|
path: ${{ github.workspace }}/.ccache
|
||||||
key: ccache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
|
key: ccache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-${{ runner.os }}-${{ github.ref_name }}-
|
ccache-${{ runner.os }}-${{ github.ref_name }}-
|
||||||
@@ -276,7 +276,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CMAKE_BUILD_TYPE: Release
|
CMAKE_BUILD_TYPE: Release
|
||||||
QT_QPA_PLATFORM: offscreen
|
QT_QPA_PLATFORM: offscreen
|
||||||
CCACHE_DIR: ${{ runner.temp }}/ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
CCACHE_MAXSIZE: 1G
|
CCACHE_MAXSIZE: 1G
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -297,7 +297,7 @@ jobs:
|
|||||||
- name: Restore ccache
|
- name: Restore ccache
|
||||||
uses: WarpBuilds/cache@v1
|
uses: WarpBuilds/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.temp }}/ccache
|
path: ${{ github.workspace }}/.ccache
|
||||||
key: ccache-${{ runner.os }}-dynamic-${{ github.ref_name }}-${{ github.sha }}
|
key: ccache-${{ runner.os }}-dynamic-${{ github.ref_name }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-${{ runner.os }}-dynamic-${{ github.ref_name }}-
|
ccache-${{ runner.os }}-dynamic-${{ github.ref_name }}-
|
||||||
|
|||||||
Reference in New Issue
Block a user