2626 include :
2727 - runner : ubuntu-24.04
2828 target : x86_64-unknown-linux-musl
29+ - runner : ubuntu-24.04
30+ target : aarch64-unknown-linux-musl
2931 - runner : macos-15-intel
3032 target : x86_64-apple-darwin
3133 - runner : macos-15
4749 targets : ${{ matrix.target }}
4850
4951 - name : Use hermetic Cargo home
50- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
52+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
5153 shell : bash
5254 run : |
5355 set -euo pipefail
5860 : > "${cargo_home}/config.toml"
5961
6062 - name : Cache Cargo home and target dir
61- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
63+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
6264 uses : actions/cache@v4
6365 with :
6466 path : |
7072 ${{ runner.os }}-${{ matrix.target }}-cargo-
7173
7274 - name : Cache Cargo home and target dir
73- if : ${{ matrix.target != 'x86_64- unknown-linux-musl' }}
75+ if : ${{ !contains( matrix.target, ' unknown-linux-musl') }}
7476 uses : actions/cache@v4
7577 with :
7678 path : |
@@ -82,20 +84,20 @@ jobs:
8284 ${{ runner.os }}-${{ matrix.target }}-cargo-
8385
8486 - name : Install Zig
85- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
87+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
8688 uses : mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29
8789 with :
8890 version : 0.14.0
8991
9092 - name : Install musl build tools
91- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
93+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
9294 env :
9395 TARGET : ${{ matrix.target }}
9496 shell : bash
9597 run : bash "${GITHUB_WORKSPACE}/.github/scripts/install-musl-build-tools.sh"
9698
9799 - name : Configure rustc UBSan wrapper
98- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
100+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
99101 shell : bash
100102 run : |
101103 set -euo pipefail
@@ -118,7 +120,7 @@ jobs:
118120 echo "RUSTC_WORKSPACE_WRAPPER=" >> "$GITHUB_ENV"
119121
120122 - name : Clear sanitizer flags
121- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
123+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
122124 shell : bash
123125 run : |
124126 set -euo pipefail
@@ -136,7 +138,7 @@ jobs:
136138 echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS=" >> "$GITHUB_ENV"
137139
138140 - name : Configure musl rusty_v8 artifact overrides
139- if : ${{ matrix.target == 'x86_64- unknown-linux-musl' }}
141+ if : ${{ contains( matrix.target, ' unknown-linux-musl') }}
140142 env :
141143 TARGET : ${{ matrix.target }}
142144 shell : bash
@@ -276,6 +278,11 @@ jobs:
276278 chmod +x "${linux_stage}/codext"
277279 tar -C "${linux_stage}" -czf "${out_dir}/codext-linux-x64-${VERSION}.tar.gz" codext
278280
281+ linux_arm64_stage="$(mktemp -d "${RUNNER_TEMP}/release-linux-arm64-XXXXXX")"
282+ cp "${artifacts_root}/codex-bin-aarch64-unknown-linux-musl/codex" "${linux_arm64_stage}/codext"
283+ chmod +x "${linux_arm64_stage}/codext"
284+ tar -C "${linux_arm64_stage}" -czf "${out_dir}/codext-linux-arm64-${VERSION}.tar.gz" codext
285+
279286 darwin_x64_stage="$(mktemp -d "${RUNNER_TEMP}/release-darwin-x64-XXXXXX")"
280287 cp "${artifacts_root}/codex-bin-x86_64-apple-darwin/codex" "${darwin_x64_stage}/codext"
281288 chmod +x "${darwin_x64_stage}/codext"
@@ -366,12 +373,15 @@ jobs:
366373
367374 mkdir -p \
368375 "${vendor_root}/x86_64-unknown-linux-musl/codex" \
376+ "${vendor_root}/aarch64-unknown-linux-musl/codex" \
369377 "${vendor_root}/x86_64-apple-darwin/codex" \
370378 "${vendor_root}/aarch64-apple-darwin/codex" \
371379 "${vendor_root}/x86_64-pc-windows-msvc/codex"
372380
373381 cp "${artifacts_root}/codex-bin-x86_64-unknown-linux-musl/codex" \
374382 "${vendor_root}/x86_64-unknown-linux-musl/codex/codex"
383+ cp "${artifacts_root}/codex-bin-aarch64-unknown-linux-musl/codex" \
384+ "${vendor_root}/aarch64-unknown-linux-musl/codex/codex"
375385 cp "${artifacts_root}/codex-bin-x86_64-apple-darwin/codex" \
376386 "${vendor_root}/x86_64-apple-darwin/codex/codex"
377387 cp "${artifacts_root}/codex-bin-aarch64-apple-darwin/codex" \
@@ -401,6 +411,7 @@ jobs:
401411 packages=(
402412 codex
403413 codex-linux-x64
414+ codex-linux-arm64
404415 codex-darwin-x64
405416 codex-darwin-arm64
406417 codex-win32-x64
0 commit comments