Skip to content

Commit 9d87959

Browse files
16bit-ykikoclaude
andcommitted
fix(ci): unset LIBRARY_PATH before cmake for cross-compilation
Pixi's activation script `unset` doesn't propagate through its environment capture mechanism. Use `env -u LIBRARY_PATH` to strip the host x86_64 library path directly before cmake invocation, preventing lld from finding incompatible libgcc_s.so.1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8fd946c commit 9d87959

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test-cmake.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,16 @@ jobs:
8080
if: ${{ matrix.target_triple }}
8181
shell: bash
8282
run: |
83-
pixi run -e ${{ matrix.pixi_env || 'default' }} cmake-config ${{ matrix.build_type }} OFF "-DCLICE_TARGET_TRIPLE=${{ matrix.target_triple }}"
84-
pixi run -e ${{ matrix.pixi_env || 'default' }} cmake-build ${{ matrix.build_type }}
83+
ENV="${{ matrix.pixi_env || 'default' }}"
84+
pixi run -e "$ENV" -- env -u LIBRARY_PATH \
85+
cmake -B "build/${{ matrix.build_type }}" -G Ninja \
86+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
87+
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain.cmake \
88+
-DCLICE_ENABLE_TEST=ON \
89+
-DCLICE_CI_ENVIRONMENT=OFF \
90+
"-DCLICE_TARGET_TRIPLE=${{ matrix.target_triple }}"
91+
pixi run -e "$ENV" -- env -u LIBRARY_PATH \
92+
cmake --build "build/${{ matrix.build_type }}"
8593
8694
- name: Upload cross-compiled binaries
8795
if: ${{ matrix.build_only }}

0 commit comments

Comments
 (0)