-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
165 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
task: | ||
name: "Update Base Images ($MACOS_VERSION)" | ||
alias: update-base | ||
matrix: | ||
- env: | ||
MACOS_VERSION: sonoma | ||
- env: | ||
MACOS_VERSION: sequoia | ||
<<: *defaults | ||
pull_vanilla_script: | ||
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-vanilla:latest | ||
build_base_script: | ||
- packer init templates/base.pkr.hcl | ||
- packer build -var macos_version="$MACOS_VERSION" templates/base.pkr.hcl | ||
push_base_script: | ||
- tart push $MACOS_VERSION-base ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest | ||
always: | ||
cleanup_script: | ||
- tart delete $MACOS_VERSION-base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
task: | ||
name: "Release Xcode $CIRRUS_TAG ($MACOS_VERSION)" | ||
matrix: | ||
- env: | ||
MACOS_VERSION: sonoma | ||
- env: | ||
MACOS_VERSION: sequoia | ||
<<: *defaults | ||
pull_base_script: | ||
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest | ||
build_script: | ||
- packer init templates/xcode.pkr.hcl | ||
- packer build -var macos_version="$MACOS_VERSION" -var xcode_version="[\"$CIRRUS_TAG\"]" templates/xcode.pkr.hcl | ||
push_script: | | ||
if [[ $CIRRUS_TAG == *"beta"* ]] | ||
then | ||
tart push $MACOS_VERSION-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:$CIRRUS_TAG | ||
else | ||
tart push $MACOS_VERSION-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:latest | ||
fi | ||
always: | ||
cleanup_script: | ||
- tart delete $MACOS_VERSION-xcode:$CIRRUS_TAG || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
task: | ||
name: "Update Runner Image ($MACOS_VERSION)" | ||
env: | ||
matrix: | ||
- MACOS_VERSION: sonoma | ||
XCODE_VERSIONS: 15.2,15.3,15.4,16 | ||
- MACOS_VERSION: sequoia | ||
XCODE_VERSIONS: "\"16.1-beta-3\",15.4,16" | ||
only_if: $CIRRUS_CRON == "weekly" # Every Sunday at 14 UTC | ||
<<: *defaults | ||
pull_base_script: | ||
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest | ||
build_xcode_script: | ||
- packer init templates/xcode.pkr.hcl | ||
- packer build -var tag=runner -var disk_size=300 -var disk_free_mb=100000 -var macos_version="$MACOS_VERSION" -var xcode_version="[$XCODE_VERSIONS]" templates/xcode.pkr.hcl | ||
push_script: | | ||
tart push "$MACOS_VERSION-xcode:runner" ghcr.io/cirruslabs/macos-runner:$MACOS_VERSION | ||
always: | ||
cleanup_script: | ||
- tart delete "$MACOS_VERSION-xcode:runner" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
task: | ||
name: "Update Vanilla Sonoma Image" | ||
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH && changesInclude("templates/vanilla-sonoma.pkr.hcl") | ||
<<: *defaults | ||
build_script: | ||
- packer init templates/vanilla-sonoma.pkr.hcl | ||
- packer build templates/vanilla-sonoma.pkr.hcl | ||
disable_sip_script: | ||
- packer build -var vm_name=sonoma-vanilla templates/disable-sip.pkr.hcl | ||
push_script: | ||
- tart push sonoma-vanilla ghcr.io/cirruslabs/macos-sonoma-vanilla:latest ghcr.io/cirruslabs/macos-sonoma-vanilla:14.6 | ||
always: | ||
cleanup_script: | ||
- tart delete sonoma-vanilla | ||
|
||
task: | ||
name: "Update Vanilla Sequoia Image" | ||
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH && changesInclude("templates/vanilla-sequoia.pkr.hcl") | ||
<<: *defaults | ||
build_script: | ||
- packer init templates/vanilla-sequoia.pkr.hcl | ||
- packer build templates/vanilla-sequoia.pkr.hcl | ||
disable_sip_script: | ||
- packer build -var vm_name=sequoia-vanilla templates/disable-sip.pkr.hcl | ||
push_script: | ||
- tart push sequoia-vanilla ghcr.io/cirruslabs/macos-sequoia-vanilla:latest ghcr.io/cirruslabs/macos-sequoia-vanilla:15.0.1 | ||
always: | ||
cleanup_script: | ||
- tart delete sequoia-vanilla | ||
|
||
task: | ||
name: "Update Vanilla Sequoia Beta Image" | ||
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH && changesInclude("templates/vanilla-sequoia-beta.pkr.hcl") | ||
<<: *defaults | ||
build_script: | ||
- packer init templates/vanilla-sequoia-beta.pkr.hcl | ||
- packer build templates/vanilla-sequoia-beta.pkr.hcl | ||
disable_sip_script: | ||
- packer build -var vm_name=sequoia-vanilla templates/disable-sip.pkr.hcl | ||
push_script: | ||
- tart push sequoia-vanilla ghcr.io/cirruslabs/macos-sequoia-vanilla:15.1-beta-6 | ||
always: | ||
cleanup_script: | ||
- tart delete sequoia-vanilla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
task: | ||
name: "Update Xcode Images ($MACOS_VERSION $XCODE_VERSION)" | ||
depends_on: update-base | ||
env: | ||
matrix: | ||
- MACOS_VERSION: sequoia | ||
XCODE_VERSION: 16.1-beta-3 | ||
- MACOS_VERSION: sequoia | ||
XCODE_VERSION: 16 | ||
LATEST: true | ||
- MACOS_VERSION: sonoma | ||
XCODE_VERSION: 16 | ||
LATEST: true | ||
- MACOS_VERSION: sonoma | ||
XCODE_VERSION: 15.4 | ||
- MACOS_VERSION: sonoma | ||
XCODE_VERSION: 15.3 | ||
- MACOS_VERSION: sonoma | ||
XCODE_VERSION: 15.2 | ||
<<: *defaults | ||
pull_base_script: | ||
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest | ||
build_xcode_script: | ||
- packer init templates/xcode.pkr.hcl | ||
- packer build -var macos_version="$MACOS_VERSION" -var xcode_version="[\"$XCODE_VERSION\"]" templates/xcode.pkr.hcl | ||
push_script: | | ||
if [[ -z "$LATEST" ]] | ||
then | ||
tart push "$MACOS_VERSION-xcode:$XCODE_VERSION" ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:$XCODE_VERSION | ||
else | ||
tart push "$MACOS_VERSION-xcode:$XCODE_VERSION" ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:$XCODE_VERSION ghcr.io/cirruslabs/macos-$MACOS_VERSION-xcode:latest | ||
fi | ||
always: | ||
cleanup_script: | ||
- tart delete "$MACOS_VERSION-xcode:$XCODE_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters