From e9df61b9253f41ea19f716e916a7e494d98484a6 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 23 Jul 2024 11:41:52 -0700 Subject: [PATCH] Upgrade AWS CLI on Mac runners to resolve segfault issue (#137) The installed version of the AWS CLI is causing segfaults while uploading binaries to S3. The latest version of the CLI does not appear to have this problem so I am adding a script to upgrade the CLI for Mac targets. --- .github/workflows/build-helper.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-helper.yml b/.github/workflows/build-helper.yml index d11b1ca52..394ea8c61 100644 --- a/.github/workflows/build-helper.yml +++ b/.github/workflows/build-helper.yml @@ -28,6 +28,9 @@ jobs: run: | sudo apt-get update sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm squashfs-tools + - name: Upgrade AWS CLI (Mac only) # The pre-installed version of the AWS CLI has a segfault problem so we'll install it via Homebrew instead. + if: matrix.platform == 'darwin' + run: brew update && brew install awscli - name: Install FPM # The version of FPM that comes bundled with electron-builder doesn't include a Linux ARM target. Installing Gems onto the runner is super quick so we'll just do this for all targets. run: sudo gem install fpm - uses: actions/setup-go@v5