Compare commits

..
8 Commits
Author SHA1 Message Date
Fedor Korotkov 5d1abcb935 Lower the expected free disk size 2024-05-02 09:28:23 -04:00
Fedor Korotkov 8151177d8f Revert "Fixed Simulator Opening" (#148)
This reverts commit e45042edb8.
2024-05-02 09:27:49 -04:00
Fedor Korotkov 2cd59ec2b4 Fixed Simulator Opening (#146) 2024-05-01 15:39:25 +02:00
fedor 2dcf12940d Add Java to path 2024-05-01 08:07:25 -04:00
fedor acd0ec5913 Use OpenJDK 2024-05-01 08:00:09 -04:00
fedor f2d703668c Fixed JDK 2024-05-01 07:55:20 -04:00
fedor 54a41a1e0a Use sudo 2024-05-01 07:51:33 -04:00
Nikolay Edigaryev 57a0eb2d30 /Users/runner → /Users/admin symlink to support certain GitHub Actions (#145) 2024-04-22 11:04:53 -04:00
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ task:
matrix:
- MACOS_VERSION: sonoma
XCODE_VERSIONS: 15.1,15.2,15.3
only_if: $CIRRUS_TAG != "" || $CIRRUS_CRON == "weekly" # Every Sunday at 14 UTC
only_if: $CIRRUS_CRON == "weekly" # Every Sunday at 14 UTC
<<: *defaults
pull_base_script:
- tart pull ghcr.io/cirruslabs/macos-$MACOS_VERSION-base:latest
+4 -3
View File
@@ -65,7 +65,8 @@ build {
provisioner "shell" {
inline = [
"source ~/.zprofile",
"brew install homebrew/cask-versions/temurin17",
"brew install openjdk@17",
"echo 'export PATH=\"/opt/homebrew/opt/openjdk@17/bin:$PATH\"' >> ~/.zprofile",
"echo 'export ANDROID_HOME=$HOME/android-sdk' >> ~/.zprofile",
"echo 'export ANDROID_SDK_ROOT=$ANDROID_HOME' >> ~/.zprofile",
"echo 'export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator' >> ~/.zprofile",
@@ -98,7 +99,7 @@ build {
provisioner "shell" {
inline = [
for version in var.xcode_version :
"source ~/.zprofile && xcodes install ${version} --experimental-unxip --path /Users/admin/Downloads/Xcode_${version}.xip --select --empty-trash && xcodebuild -downloadAllPlatforms && xcodebuild -runFirstLaunch"
"source ~/.zprofile && sudo xcodes install ${version} --experimental-unxip --path /Users/admin/Downloads/Xcode_${version}.xip --select --empty-trash && xcodebuild -downloadAllPlatforms && xcodebuild -runFirstLaunch"
]
}
@@ -163,7 +164,7 @@ build {
"source ~/.zprofile",
"df -h",
"export FREE_MB=$(df -m | awk '{print $4}' | head -n 2 | tail -n 1)",
"[[ $FREE_MB -gt 20000 ]] && echo OK || exit 1"
"[[ $FREE_MB -gt 15000 ]] && echo OK || exit 1"
]
}
}