Skip to content

ci: fix debug artifact script on macos bash#275

Merged
hongjr03 merged 1 commit into
masterfrom
ci/fix-debug-artifact-bash
Jun 20, 2026
Merged

ci: fix debug artifact script on macos bash#275
hongjr03 merged 1 commit into
masterfrom
ci/fix-debug-artifact-bash

Conversation

@hongjr03

Copy link
Copy Markdown
Member

Summary

Fix scripts/build-artifact.sh under macOS bash 3.2 with set -u when cargo-profile: debug is used.

The previous implementation expanded an intentionally empty array for debug builds. That works in newer bash, but macOS bash treats it as an unbound variable under set -u:

scripts/build-artifact.sh: line 43: cargo_profile_args[@]: unbound variable

This patch builds the cargo command incrementally instead, only appending --release for release builds.

Verification

  • Reproduced from master CI: Dev Artifacts / aarch64-apple-darwin
  • Local fake-cargo test for aarch64-apple-darwin darwin-arm64 debug confirmed:
    • command is cargo build --target aarch64-apple-darwin -p vide --bin vide
    • no --release is passed for debug
    • debug archive/staged server paths are produced

@hongjr03 hongjr03 merged commit 5196da1 into master Jun 20, 2026
42 checks passed
@hongjr03 hongjr03 deleted the ci/fix-debug-artifact-bash branch June 20, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant