40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
task:
|
|
name: "Update Runner Image ($MACOS_VERSION)"
|
|
execution_lock: runner-image-update
|
|
env:
|
|
matrix:
|
|
- MACOS_VERSION: sonoma
|
|
XCODE_VERSIONS: "16.1,16"
|
|
DISK_SIZE: 230
|
|
- MACOS_VERSION: sequoia
|
|
XCODE_VERSIONS: "\"26.0.1\",16.4,16.3,16.2,16.1,16"
|
|
ADDITIONAL_IOS_BUILDS: "18.5,18.4,18.2,17.5"
|
|
XCODE_COMPONENTS: "\"MetalToolchain\""
|
|
DISK_SIZE: 400
|
|
- MACOS_VERSION: tahoe
|
|
XCODE_VERSIONS: "\"26.0.1\""
|
|
XCODE_COMPONENTS: "\"MetalToolchain\""
|
|
DISK_SIZE: 210
|
|
<<: *defaults
|
|
pull_base_script:
|
|
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest
|
|
init_xcode_script: packer init templates/xcode.pkr.hcl
|
|
build_xcode_script: |
|
|
packer build -var tag=runner -var disk_size=$DISK_SIZE \
|
|
-var disk_free_mb=100000 \
|
|
-var macos_version="$MACOS_VERSION" \
|
|
-var xcode_version="[$XCODE_VERSIONS]" \
|
|
-var additional_ios_builds="[$ADDITIONAL_IOS_BUILDS]" \
|
|
-var xcode_components="[$XCODE_COMPONENTS]" \
|
|
-var expected_runtimes_file="data/expected.$MACOS_VERSION.runtimes.txt" \
|
|
templates/xcode.pkr.hcl
|
|
push_script: |
|
|
if [[ -z "$CIRRUS_PR" ]]; then
|
|
tart push "$MACOS_VERSION-xcode:runner" ghcr.io/cirruslabs/macos-runner:$MACOS_VERSION
|
|
else
|
|
echo "Skipping pushing for PR..."
|
|
fi
|
|
always:
|
|
cleanup_script:
|
|
- tart delete "$MACOS_VERSION-xcode:runner"
|