Prevent an array with empty element when XCODE_COMPONENTS is unset (#330)

This commit is contained in:
Nikolay Edigaryev
2026-03-13 17:23:50 -04:00
committed by GitHub
parent f9c2b3c122
commit 27def7c5ce
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
task:
name: "Release Xcode $CIRRUS_TAG ($MACOS_VERSION)"
env:
XCODE_COMPONENTS: "MetalToolchain"
XCODE_COMPONENTS: "\"MetalToolchain\""
matrix:
- MACOS_VERSION: tahoe
- MACOS_VERSION: sequoia
@@ -10,7 +10,7 @@ task:
- 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\"]" -var xcode_components="[\"$XCODE_COMPONENTS\"]" templates/xcode.pkr.hcl
- packer build -var macos_version="$MACOS_VERSION" -var xcode_version="[\"$CIRRUS_TAG\"]" -var xcode_components="[$XCODE_COMPONENTS]" templates/xcode.pkr.hcl
push_script: |
if [[ $CIRRUS_TAG == *"beta"* ]]
then
+4 -4
View File
@@ -5,14 +5,14 @@ task:
matrix:
- MACOS_VERSION: tahoe
XCODE_VERSION: "26.2"
XCODE_COMPONENTS: "MetalToolchain"
XCODE_COMPONENTS: "\"MetalToolchain\""
LATEST: true
- MACOS_VERSION: tahoe
XCODE_VERSION: "26.1.1"
XCODE_COMPONENTS: "MetalToolchain"
XCODE_COMPONENTS: "\"MetalToolchain\""
- MACOS_VERSION: tahoe
XCODE_VERSION: "26.0.1"
XCODE_COMPONENTS: "MetalToolchain"
XCODE_COMPONENTS: "\"MetalToolchain\""
- MACOS_VERSION: sequoia
XCODE_VERSION: 16.4
LATEST: true
@@ -36,7 +36,7 @@ task:
- 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\"]" -var xcode_components="[\"$XCODE_COMPONENTS\"]" templates/xcode.pkr.hcl
- packer build -var macos_version="$MACOS_VERSION" -var xcode_version="[\"$XCODE_VERSION\"]" -var xcode_components="[$XCODE_COMPONENTS]" templates/xcode.pkr.hcl
push_script: |
if [[ -z "$LATEST" ]]
then