From 0c165a93d2440371aefe3fbe682f98a305027acb Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 11 Dec 2024 19:56:48 +0400 Subject: [PATCH] Compatibility with GitHub Actions Runner Images for /usr/local/bin (#198) --- templates/xcode.pkr.hcl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/xcode.pkr.hcl b/templates/xcode.pkr.hcl index 48bcaa8..c873603 100644 --- a/templates/xcode.pkr.hcl +++ b/templates/xcode.pkr.hcl @@ -240,6 +240,17 @@ build { ] } + # Compatibility with GitHub Actions Runner Images, where + # /usr/local/bin belongs to the default user. Also see [2]. + # + # [1]: https://github.com/actions/runner-images/blob/6bbddd20d76d61606bea5a0133c950cc44c370d3/images/macos/scripts/build/configure-machine.sh#L96 + # [2]: https://github.com/actions/runner-images/discussions/7607 + provisioner "shell" { + inline = [ + "sudo chown admin /usr/local/bin" + ] + } + # Wait for the "update_dyld_sim_shared_cache" process[1][2] to finish # to avoid wasting CPU cycles after boot #