chore(ci): Speed up macOS builds by using larger runner (#5234)

Saves about 2min per build

https://github.com/openai/codex/actions/runs/18544852356/job/52860637804
vs
https://github.com/openai/codex/actions/runs/18545106208/job/52861427485
This commit is contained in:
Javi
2025-10-20 16:47:38 -07:00
committed by GitHub
parent ef806456e4
commit df15a2f6ef

View File

@@ -58,9 +58,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- runner: macos-14 - runner: macos-15-xlarge
target: aarch64-apple-darwin target: aarch64-apple-darwin
- runner: macos-14 - runner: macos-15-xlarge
target: x86_64-apple-darwin target: x86_64-apple-darwin
- runner: ubuntu-24.04 - runner: ubuntu-24.04
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
@@ -100,7 +100,7 @@ jobs:
- name: Cargo build - name: Cargo build
run: cargo build --target ${{ matrix.target }} --release --bin codex --bin codex-responses-api-proxy run: cargo build --target ${{ matrix.target }} --release --bin codex --bin codex-responses-api-proxy
- if: ${{ matrix.runner == 'macos-14' }} - if: ${{ matrix.runner == 'macos-15-xlarge' }}
name: Configure Apple code signing name: Configure Apple code signing
shell: bash shell: bash
env: env:
@@ -185,7 +185,7 @@ jobs:
echo "APPLE_CODESIGN_KEYCHAIN=$keychain_path" >> "$GITHUB_ENV" echo "APPLE_CODESIGN_KEYCHAIN=$keychain_path" >> "$GITHUB_ENV"
echo "::add-mask::$APPLE_CODESIGN_IDENTITY" echo "::add-mask::$APPLE_CODESIGN_IDENTITY"
- if: ${{ matrix.runner == 'macos-14' }} - if: ${{ matrix.runner == 'macos-15-xlarge' }}
name: Sign macOS binaries name: Sign macOS binaries
shell: bash shell: bash
run: | run: |
@@ -206,7 +206,7 @@ jobs:
codesign --force --options runtime --timestamp --sign "$APPLE_CODESIGN_IDENTITY" "${keychain_args[@]}" "$path" codesign --force --options runtime --timestamp --sign "$APPLE_CODESIGN_IDENTITY" "${keychain_args[@]}" "$path"
done done
- if: ${{ matrix.runner == 'macos-14' }} - if: ${{ matrix.runner == 'macos-15-xlarge' }}
name: Notarize macOS binaries name: Notarize macOS binaries
shell: bash shell: bash
env: env:
@@ -328,7 +328,7 @@ jobs:
done done
- name: Remove signing keychain - name: Remove signing keychain
if: ${{ always() && matrix.runner == 'macos-14' }} if: ${{ always() && matrix.runner == 'macos-15-xlarge' }}
shell: bash shell: bash
env: env:
APPLE_CODESIGN_KEYCHAIN: ${{ env.APPLE_CODESIGN_KEYCHAIN }} APPLE_CODESIGN_KEYCHAIN: ${{ env.APPLE_CODESIGN_KEYCHAIN }}