|
38 | 38 | build_type: RelWithDebInfo |
39 | 39 | target_triple: aarch64-linux-gnu |
40 | 40 | build_only: true |
| 41 | + pixi_env: cross-linux-aarch64 |
41 | 42 | # ── Native ARM64 build + test ───────────────────────────────── |
42 | 43 | - os: windows-11-arm |
43 | 44 | build_type: RelWithDebInfo |
|
48 | 49 | uses: actions/checkout@v4 |
49 | 50 |
|
50 | 51 | - uses: ./.github/actions/setup-pixi |
| 52 | + with: |
| 53 | + environments: ${{ matrix.pixi_env && format('default {0}', matrix.pixi_env) || 'default' }} |
51 | 54 |
|
52 | 55 | - name: Restore compiler cache |
53 | 56 | uses: actions/cache@v4 |
@@ -75,15 +78,17 @@ jobs: |
75 | 78 | if: ${{ matrix.target_triple }} |
76 | 79 | shell: bash |
77 | 80 | 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 }} |
80 | 83 |
|
81 | 84 | - name: Upload cross-compiled binaries |
82 | 85 | if: ${{ matrix.build_only }} |
83 | 86 | uses: actions/upload-artifact@v4 |
84 | 87 | with: |
85 | 88 | 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/ |
87 | 92 | if-no-files-found: error |
88 | 93 | retention-days: 1 |
89 | 94 |
|
@@ -135,7 +140,7 @@ jobs: |
135 | 140 | uses: actions/download-artifact@v4 |
136 | 141 | with: |
137 | 142 | name: cross-build-${{ matrix.target_triple }} |
138 | | - path: build/${{ matrix.build_type }}/bin/ |
| 143 | + path: build/${{ matrix.build_type }}/ |
139 | 144 |
|
140 | 145 | - name: Make binaries executable |
141 | 146 | run: chmod +x build/${{ matrix.build_type }}/bin/* |
|
0 commit comments