Skip to content

Commit 846c9a9

Browse files
16bit-ykikoclaude
andcommitted
fix(ci): use cross-compile env for aarch64 build, upload lib/ for tests
- Use cross-linux-aarch64 pixi env for Linux aarch64 cross-compilation (provides sysroot, fixes Exec format error on native ARM64 runner) - Upload lib/ directory alongside bin/ (clang resource dir needed by tests) - Remove unnecessary platform restrictions from build/format features Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1517508 commit 846c9a9

File tree

3 files changed

+2092
-27
lines changed

3 files changed

+2092
-27
lines changed

.github/workflows/test-cmake.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
build_type: RelWithDebInfo
3939
target_triple: aarch64-linux-gnu
4040
build_only: true
41+
pixi_env: cross-linux-aarch64
4142
# ── Native ARM64 build + test ─────────────────────────────────
4243
- os: windows-11-arm
4344
build_type: RelWithDebInfo
@@ -48,6 +49,8 @@ jobs:
4849
uses: actions/checkout@v4
4950

5051
- uses: ./.github/actions/setup-pixi
52+
with:
53+
environments: ${{ matrix.pixi_env && format('default {0}', matrix.pixi_env) || 'default' }}
5154

5255
- name: Restore compiler cache
5356
uses: actions/cache@v4
@@ -75,15 +78,17 @@ jobs:
7578
if: ${{ matrix.target_triple }}
7679
shell: bash
7780
run: |
78-
pixi run cmake-config ${{ matrix.build_type }} OFF "-DCLICE_TARGET_TRIPLE=${{ matrix.target_triple }}"
79-
pixi run cmake-build ${{ matrix.build_type }}
81+
pixi run -e ${{ matrix.pixi_env || 'default' }} cmake-config ${{ matrix.build_type }} OFF "-DCLICE_TARGET_TRIPLE=${{ matrix.target_triple }}"
82+
pixi run -e ${{ matrix.pixi_env || 'default' }} cmake-build ${{ matrix.build_type }}
8083
8184
- name: Upload cross-compiled binaries
8285
if: ${{ matrix.build_only }}
8386
uses: actions/upload-artifact@v4
8487
with:
8588
name: cross-build-${{ matrix.target_triple }}
86-
path: build/${{ matrix.build_type }}/bin/
89+
path: |
90+
build/${{ matrix.build_type }}/bin/
91+
build/${{ matrix.build_type }}/lib/
8792
if-no-files-found: error
8893
retention-days: 1
8994

@@ -135,7 +140,7 @@ jobs:
135140
uses: actions/download-artifact@v4
136141
with:
137142
name: cross-build-${{ matrix.target_triple }}
138-
path: build/${{ matrix.build_type }}/bin/
143+
path: build/${{ matrix.build_type }}/
139144

140145
- name: Make binaries executable
141146
run: chmod +x build/${{ matrix.build_type }}/bin/*

0 commit comments

Comments
 (0)