-
Notifications
You must be signed in to change notification settings - Fork 1
/
sdk-build-macos.pkr.hcl
60 lines (54 loc) · 1.27 KB
/
sdk-build-macos.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
packer {
required_plugins {
tart = {
version = ">= 1.12.0"
source = "github.com/cirruslabs/tart"
}
}
}
source "tart-cli" "tart" {
vm_base_name = "ghcr.io/cirruslabs/macos-sonoma-xcode:15.3"
vm_name = "sdk-build-macos"
cpu_count = 4
memory_gb = 8
disk_size_gb = 200
headless = true
ssh_password = "admin"
ssh_username = "admin"
ssh_timeout = "120s"
}
build {
sources = ["source.tart-cli.tart"]
# Update Homebrew packages
provisioner "shell" {
inline = [
"source ~/.zprofile",
"brew --version",
"brew update",
"brew upgrade",
]
}
# Install bash
provisioner "shell" {
inline = [
"source ~/.zprofile",
"brew install bash",
]
}
# Install base packages (equivalent to GitHub-hosted runners)
provisioner "shell" {
inline = [
"source ~/.zprofile",
"brew install cmake jq git-lfs gnu-tar gnupg wget xz",
]
}
# Install additional packages for SDK build
provisioner "shell" {
inline = [
"source ~/.zprofile",
"brew install awscli autoconf automake binutils boost ccache coreutils",
"brew install dos2unix dtc gawk gnu-sed gperf help2man meson ncurses",
"brew install ninja pkg-config [email protected] texinfo",
]
}
}