From 581bfb3a14f555a64e346a1af51840cd6a96ebc9 Mon Sep 17 00:00:00 2001 From: Sam Nelson Date: Sat, 8 Feb 2025 11:31:21 -0700 Subject: [PATCH] Add osx-release job dependency and fix build to work on ancient OSX bash --- .github/workflows/release.yml | 3 ++- build.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 517cb6b..6441aed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,8 @@ jobs: gopim-windows-amd64.exe osx-release: - name: Release pushed tag + needs: all-release + name: Release OSX binary runs-on: macos-latest steps: - name: Checkout repository @ Tag diff --git a/build.sh b/build.sh index 7cc265e..67fd41a 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,8 @@ if [[ -z "$package" ]]; then fi platform_name=$2 package_split=(${package//\// }) -package_name=${package_split[-1]} +# Get the last element of the array in a bash <4.0 compatible way. Thanks OSX... +package_name=${package_split[@]:(-1)} platforms=("windows/amd64" "windows/386" "darwin/amd64" "linux/amd64")