Skip to content

Commit 70b6ea7

Browse files
committed
ci: use ${{ github.workspace }}
1 parent 7d7943a commit 70b6ea7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup ccache
4949
uses: actions/cache@v4
5050
with:
51-
path: ${{ github.workspace }}/.ccache
51+
path: ${{ env.CCACHE_DIR }}
5252
key: ${{ runner.os }}-ccache-${{ matrix.ubuntu }}-${{ hashFiles('**/CMakeLists.txt') }}
5353
restore-keys: |
5454
${{ runner.os }}-ccache-${{ matrix.ubuntu }}-

.github/workflows/macos-linux-windows-pixi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
name: Pixi - ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }} ${{ matrix.cxx_options }}
3131
runs-on: ${{ matrix.os }}
3232
env:
33-
CCACHE_BASEDIR: "${GITHUB_WORKSPACE}"
34-
CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache"
33+
CCACHE_BASEDIR: ${{ github.workspace }}
34+
CCACHE_DIR: ${{ github.workspace }}/.ccache
3535
CCACHE_COMPRESS: true
3636
CCACHE_COMPRESSLEVEL: 6
3737
# Since pixi will install a compiler, the compiler mtime will be changed.
@@ -67,7 +67,7 @@ jobs:
6767

6868
- uses: actions/cache@v4
6969
with:
70-
path: .ccache
70+
path: ${{ env.CCACHE_DIR }}
7171
key: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-${{ github.sha }}
7272
restore-keys: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-
7373

@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Clear ccache statistics [MacOS/Linux/Windows]
8080
run: |
81-
pixi run -e ${{ matrix.environment }} ccache -z
81+
pixi run -e ${{ matrix.environment }} ccache --show-stats --zero-stats --verbose
8282
8383
- name: Configure EigenPy [MacOS/Linux/Windows]
8484
env:
@@ -99,7 +99,7 @@ jobs:
9999
100100
- name: Show ccache statistics [MacOS/Linux/Windows]
101101
run: |
102-
pixi run -e ${{ matrix.environment }} ccache -sv
102+
pixi run -e ${{ matrix.environment }} ccache --show-stats --verbose
103103
104104
eigenpy-pixi-build:
105105
name: Pixi build - ${{ matrix.os }}

0 commit comments

Comments
 (0)