Skip to content

Commit d5e5ee8

Browse files
16bit-ykikoclaude
andcommitted
fix(ci): install single pixi env per job to fix activate-environment error
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0a2c916 commit d5e5ee8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test-cmake.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- uses: ./.github/actions/setup-pixi
5353
with:
54-
environments: ${{ matrix.pixi_env && format('default {0}', matrix.pixi_env) || 'default' }}
54+
environments: ${{ matrix.pixi_env || 'default' }}
5555

5656
- name: Restore compiler cache
5757
uses: actions/cache@v4
@@ -63,11 +63,12 @@ jobs:
6363
6464
- name: Zero cache stats
6565
run: |
66+
ENV="${{ matrix.pixi_env || 'default' }}"
6667
if [ "$RUNNER_OS" = "Windows" ]; then
67-
pixi run -- sccache --stop-server || true
68-
pixi run -- sccache --zero-stats || true
68+
pixi run -e "$ENV" -- sccache --stop-server || true
69+
pixi run -e "$ENV" -- sccache --zero-stats || true
6970
else
70-
pixi run -- ccache --zero-stats || true
71+
pixi run -e "$ENV" -- ccache --zero-stats || true
7172
fi
7273
shell: bash
7374

@@ -108,11 +109,12 @@ jobs:
108109
- name: Print cache stats and stop server
109110
if: always()
110111
run: |
112+
ENV="${{ matrix.pixi_env || 'default' }}"
111113
if [ "$RUNNER_OS" = "Windows" ]; then
112-
pixi run -- sccache --show-stats
113-
pixi run -- sccache --stop-server || true
114+
pixi run -e "$ENV" -- sccache --show-stats
115+
pixi run -e "$ENV" -- sccache --stop-server || true
114116
else
115-
pixi run -- ccache --show-stats
117+
pixi run -e "$ENV" -- ccache --show-stats
116118
fi
117119
shell: bash
118120

0 commit comments

Comments
 (0)