mirror of
https://github.com/cirruslabs/macos-image-templates.git
synced 2026-10-17 12:15:33 +02:00
Compare commits
15
Commits
15
...
less-errors
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85b6aae17f | ||
|
|
67a57c3064 | ||
|
|
fabd89cead | ||
|
|
b19d3fa66c | ||
|
|
3f1850ad07 | ||
|
|
4b7ac1f76f | ||
|
|
98b522dbfa | ||
|
|
41b20ab533 | ||
|
|
b28936faa2 | ||
|
|
3e3e6818f3 | ||
|
|
47695a9abd | ||
|
|
6555932569 | ||
|
|
4513f2adad | ||
|
|
0a4f436302 | ||
|
|
277b13fb59 |
+19
@@ -1,12 +1,16 @@
|
|||||||
task:
|
task:
|
||||||
name: "Update Images"
|
name: "Update Images"
|
||||||
only_if: $CIRRUS_CRON != ""
|
only_if: $CIRRUS_CRON != ""
|
||||||
|
timeout_in: 3h
|
||||||
persistent_worker:
|
persistent_worker:
|
||||||
labels:
|
labels:
|
||||||
name: dev-mini
|
name: dev-mini
|
||||||
env:
|
env:
|
||||||
|
TART_REGISTRY_HOSTNAME: ghcr.io
|
||||||
TART_REGISTRY_USERNAME: fkorotkov # GitHub supports only PATs
|
TART_REGISTRY_USERNAME: fkorotkov # GitHub supports only PATs
|
||||||
TART_REGISTRY_PASSWORD: ENCRYPTED[!82ed873afdf627284305afef4958c85a8f73127b09978a9786ac521559630ea6c9a5ab6e7f8315abf9ead09b6eff6eae!]
|
TART_REGISTRY_PASSWORD: ENCRYPTED[!82ed873afdf627284305afef4958c85a8f73127b09978a9786ac521559630ea6c9a5ab6e7f8315abf9ead09b6eff6eae!]
|
||||||
|
AWS_ACCESS_KEY_ID: ENCRYPTED[c187b670a17eead88c1698849376273991d09678efe37ae2f0c9738c27a2422741a71c501ef4b6a4df7bff3eca5213a9]
|
||||||
|
AWS_SECRET_ACCESS_KEY: ENCRYPTED[e456254a53b82e3167f2da23e24c389620cb3f7d47e4e5e7d993813bf9bb18c784d5cb8d88d19632073acc9e1f6096c9]
|
||||||
update_script: brew update && brew upgrade
|
update_script: brew update && brew upgrade
|
||||||
info_script:
|
info_script:
|
||||||
- tart --version
|
- tart --version
|
||||||
@@ -23,6 +27,10 @@ task:
|
|||||||
- tart push sonoma-base ghcr.io/cirruslabs/macos-sonoma-base:latest
|
- tart push sonoma-base ghcr.io/cirruslabs/macos-sonoma-base:latest
|
||||||
push_xcode_script:
|
push_xcode_script:
|
||||||
- tart push sonoma-xcode:$XCODE_VERSION ghcr.io/cirruslabs/macos-sonoma-xcode:$XCODE_VERSION ghcr.io/cirruslabs/macos-sonoma-xcode:latest
|
- tart push sonoma-xcode:$XCODE_VERSION ghcr.io/cirruslabs/macos-sonoma-xcode:$XCODE_VERSION ghcr.io/cirruslabs/macos-sonoma-xcode:latest
|
||||||
|
push_base_ecr_script:
|
||||||
|
- tart push --chunk-size=5 sonoma-base public.ecr.aws/cirruslabs/macos:sonoma-base
|
||||||
|
push_xcode_ecr_script:
|
||||||
|
- tart push --chunk-size=5 sonoma-xcode:$XCODE_VERSION public.ecr.aws/cirruslabs/macos:sonoma-xcode-$XCODE_VERSION public.ecr.aws/cirruslabs/macos:sonoma-xcode
|
||||||
always:
|
always:
|
||||||
cleanup_script:
|
cleanup_script:
|
||||||
- tart delete sonoma-base || true
|
- tart delete sonoma-base || true
|
||||||
@@ -31,12 +39,16 @@ task:
|
|||||||
task:
|
task:
|
||||||
name: "Release Xcode $CIRRUS_TAG"
|
name: "Release Xcode $CIRRUS_TAG"
|
||||||
only_if: $CIRRUS_TAG != ""
|
only_if: $CIRRUS_TAG != ""
|
||||||
|
timeout_in: 3h
|
||||||
persistent_worker:
|
persistent_worker:
|
||||||
labels:
|
labels:
|
||||||
name: dev-mini
|
name: dev-mini
|
||||||
env:
|
env:
|
||||||
|
TART_REGISTRY_HOSTNAME: ghcr.io
|
||||||
TART_REGISTRY_USERNAME: fkorotkov # GitHub supports only PATs
|
TART_REGISTRY_USERNAME: fkorotkov # GitHub supports only PATs
|
||||||
TART_REGISTRY_PASSWORD: ENCRYPTED[!82ed873afdf627284305afef4958c85a8f73127b09978a9786ac521559630ea6c9a5ab6e7f8315abf9ead09b6eff6eae!]
|
TART_REGISTRY_PASSWORD: ENCRYPTED[!82ed873afdf627284305afef4958c85a8f73127b09978a9786ac521559630ea6c9a5ab6e7f8315abf9ead09b6eff6eae!]
|
||||||
|
AWS_ACCESS_KEY_ID: ENCRYPTED[c187b670a17eead88c1698849376273991d09678efe37ae2f0c9738c27a2422741a71c501ef4b6a4df7bff3eca5213a9]
|
||||||
|
AWS_SECRET_ACCESS_KEY: ENCRYPTED[e456254a53b82e3167f2da23e24c389620cb3f7d47e4e5e7d993813bf9bb18c784d5cb8d88d19632073acc9e1f6096c9]
|
||||||
update_script: brew update && brew upgrade
|
update_script: brew update && brew upgrade
|
||||||
info_script:
|
info_script:
|
||||||
- tart --version
|
- tart --version
|
||||||
@@ -54,6 +66,13 @@ task:
|
|||||||
else
|
else
|
||||||
tart push sonoma-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-sonoma-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-sonoma-xcode:latest
|
tart push sonoma-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-sonoma-xcode:$CIRRUS_TAG ghcr.io/cirruslabs/macos-sonoma-xcode:latest
|
||||||
fi
|
fi
|
||||||
|
push_ecr_script: |
|
||||||
|
if [[ $CIRRUS_TAG == *"beta"* ]]
|
||||||
|
then
|
||||||
|
tart push --chunk-size=5 sonoma-xcode:$CIRRUS_TAG public.ecr.aws/cirruslabs/macos:sonoma-xcode-$CIRRUS_TAG
|
||||||
|
else
|
||||||
|
tart push --chunk-size=5 sonoma-xcode:$CIRRUS_TAG public.ecr.aws/cirruslabs/macos:sonoma-xcode-$CIRRUS_TAG public.ecr.aws/cirruslabs/macos:sonoma-xcode
|
||||||
|
fi
|
||||||
always:
|
always:
|
||||||
cleanup_script:
|
cleanup_script:
|
||||||
- tart delete sonoma-base || true
|
- tart delete sonoma-base || true
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
## macOS Packer Templates for Cirrus CI
|
## macOS Packer Templates for Tart
|
||||||
|
|
||||||
Repository with Packer templates to build [Tart VMs](https://github.com/cirruslabs/tart) to use with [Cirrus CI](https://cirrus-ci.org/guide/macOS/).
|
Repository with Packer templates to build [Tart VMs](https://github.com/cirruslabs/tart) to use with [Cirrus Runners](https://tart.run/integrations/github-actions/) and [Cirrus CI](https://cirrus-ci.org/guide/macOS/).
|
||||||
|
|
||||||
* `macos-{monterey,ventura,sonoma}-vanilla` image has nothing pre-installed
|
* `macos-{monterey,ventura,sonoma}-vanilla` image has nothing pre-installed
|
||||||
* `macos-{monterey,ventura,sonoma}-base` image has only `brew` pre-installed
|
* `macos-{monterey,ventura,sonoma}-base` image has only `brew` pre-installed
|
||||||
* `macos-{monterey,ventura,sonoma}-xcode:N` image is based on `macos-{monterey,ventura}-base` image and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed
|
* `macos-{monterey,ventura,sonoma}-xcode:N` image is based on `macos-{monterey,ventura}-base` image and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed
|
||||||
|
|
||||||
See a full list of VMs available on Cirrus CI [here](https://github.com/orgs/cirruslabs/packages?tab=packages&q=macos-).
|
See a full list of VMs available [here](https://github.com/orgs/cirruslabs/packages?tab=packages&q=macos-).
|
||||||
|
|
||||||
## Building Vanilla Image
|
## Building Vanilla Image
|
||||||
|
|
||||||
|
|||||||
@@ -93,13 +93,15 @@ build {
|
|||||||
// Disable screensaver for admin user
|
// Disable screensaver for admin user
|
||||||
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
||||||
// Prevent the VM from sleeping
|
// Prevent the VM from sleeping
|
||||||
"sudo systemsetup -setdisplaysleep Off",
|
"sudo systemsetup -setdisplaysleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setsleep Off",
|
"sudo systemsetup -setsleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setcomputersleep Off",
|
"sudo systemsetup -setcomputersleep Off 2>/dev/null",
|
||||||
// Launch Safari to populate the defaults
|
// Launch Safari to populate the defaults
|
||||||
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
||||||
"sleep 3",
|
"SAFARI_PID=$!",
|
||||||
"kill -9 %1",
|
"disown",
|
||||||
|
"sleep 30",
|
||||||
|
"kill -9 $SAFARI_PID",
|
||||||
// Enable Safari's remote automation and "Develop" menu
|
// Enable Safari's remote automation and "Develop" menu
|
||||||
"sudo safaridriver --enable",
|
"sudo safaridriver --enable",
|
||||||
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ packer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
source "tart-cli" "tart" {
|
source "tart-cli" "tart" {
|
||||||
from_ipsw = "https://updates.cdn-apple.com/2023FallFCS/fullrestores/002-81996/596571C1-9856-4BB3-B5BF-B5A48F4B406E/UniversalMac_14.0_23A339_Restore.ipsw"
|
from_ipsw = "https://updates.cdn-apple.com/2023FallFCS/fullrestores/042-86430/DBE44960-58A6-4715-948B-D64F33F769BD/UniversalMac_14.1_23B74_Restore.ipsw"
|
||||||
vm_name = "sonoma-vanilla"
|
vm_name = "sonoma-vanilla"
|
||||||
cpu_count = 4
|
cpu_count = 4
|
||||||
memory_gb = 8
|
memory_gb = 8
|
||||||
@@ -97,13 +97,15 @@ build {
|
|||||||
// Disable screensaver for admin user
|
// Disable screensaver for admin user
|
||||||
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
||||||
// Prevent the VM from sleeping
|
// Prevent the VM from sleeping
|
||||||
"sudo systemsetup -setdisplaysleep Off",
|
"sudo systemsetup -setdisplaysleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setsleep Off",
|
"sudo systemsetup -setsleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setcomputersleep Off",
|
"sudo systemsetup -setcomputersleep Off 2>/dev/null",
|
||||||
// Launch Safari to populate the defaults
|
// Launch Safari to populate the defaults
|
||||||
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
||||||
|
"SAFARI_PID=$!",
|
||||||
|
"disown",
|
||||||
"sleep 30",
|
"sleep 30",
|
||||||
"kill -9 %1",
|
"kill -9 $SAFARI_PID",
|
||||||
// Enable Safari's remote automation and "Develop" menu
|
// Enable Safari's remote automation and "Develop" menu
|
||||||
"sudo safaridriver --enable",
|
"sudo safaridriver --enable",
|
||||||
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ packer {
|
|||||||
source "tart-cli" "tart" {
|
source "tart-cli" "tart" {
|
||||||
# You can find macOS IPSW URLs on various websites like https://ipsw.me/
|
# You can find macOS IPSW URLs on various websites like https://ipsw.me/
|
||||||
# and https://www.theiphonewiki.com/wiki/Beta_Firmware/Mac/13.x
|
# and https://www.theiphonewiki.com/wiki/Beta_Firmware/Mac/13.x
|
||||||
from_ipsw = "https://updates.cdn-apple.com/2023SummerFCS/fullrestores/042-25658/2D6BE8DB-5549-4F85-8C54-39FC23BABC68/UniversalMac_13.5.1_22G90_Restore.ipsw"
|
from_ipsw = "https://updates.cdn-apple.com/2023SummerFCS/fullrestores/042-43686/945D434B-DA5D-48DB-A558-F6D18D11AD69/UniversalMac_13.5.2_22G91_Restore.ipsw"
|
||||||
vm_name = "ventura-vanilla"
|
vm_name = "ventura-vanilla"
|
||||||
cpu_count = 4
|
cpu_count = 4
|
||||||
memory_gb = 8
|
memory_gb = 8
|
||||||
@@ -99,13 +99,15 @@ build {
|
|||||||
// Disable screensaver for admin user
|
// Disable screensaver for admin user
|
||||||
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
"defaults -currentHost write com.apple.screensaver idleTime 0",
|
||||||
// Prevent the VM from sleeping
|
// Prevent the VM from sleeping
|
||||||
"sudo systemsetup -setdisplaysleep Off",
|
"sudo systemsetup -setdisplaysleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setsleep Off",
|
"sudo systemsetup -setsleep Off 2>/dev/null",
|
||||||
"sudo systemsetup -setcomputersleep Off",
|
"sudo systemsetup -setcomputersleep Off 2>/dev/null",
|
||||||
// Launch Safari to populate the defaults
|
// Launch Safari to populate the defaults
|
||||||
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
"/Applications/Safari.app/Contents/MacOS/Safari &",
|
||||||
|
"SAFARI_PID=$!",
|
||||||
|
"disown",
|
||||||
"sleep 30",
|
"sleep 30",
|
||||||
"kill -9 %1",
|
"kill -9 $SAFARI_PID",
|
||||||
// Enable Safari's remote automation and "Develop" menu
|
// Enable Safari's remote automation and "Develop" menu
|
||||||
"sudo safaridriver --enable",
|
"sudo safaridriver --enable",
|
||||||
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
macos_version = "sonoma"
|
macos_version = "sonoma"
|
||||||
gha_version = "2.309.0"
|
gha_version = "2.311.0"
|
||||||
xcode_version = "15"
|
xcode_version = "15.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user