From b2582839896ce17f3c3daae1e56d9a6ecd003480 Mon Sep 17 00:00:00 2001 From: Amo BD4VOW Date: Thu, 19 Sep 2024 12:03:16 +0800 Subject: [PATCH] Update github action script for building latest macos version(intel & applesilicon). --- .github/.DS_Store | Bin 6148 -> 6148 bytes .github/workflows/build.yml | 77 +++++++++++++++++++++++++++++++++--- 2 files changed, 72 insertions(+), 5 deletions(-) diff --git a/.github/.DS_Store b/.github/.DS_Store index 1f2c43e08d5274b93912b69fb3819388184aaa7e..ed86c0467cd8266ae84702270002041c84319054 100644 GIT binary patch delta 244 zcmZoMXfc=|#>B`mu~2NHo}wr#0|Nsi1A_nqLmER4Lq0<}Lvc>}#Er}AK@yxmZaza1 zLpHLcVQ_MOZUImh2+S3L1Qu1f`7SO=Ir&LIS&qj|NnhUh9&^N{G6kzjB}}UeGLWry rVA$9b&9<4HgP#NFn~fX4Gf(Ch(d7Z!0`d<-0}yZa5!t~!v4I5uA4fT> delta 88 zcmZoMXfc=|#>CJzu~2NHo}wrt0|NsP3otOGG2}4hGn6wFmjzEORA*$|yoNEFZSw<0 n1;)+n9Q+(WEt@YgerKM{FQUr{(sclc87ABCNN> $GITHUB_ENV + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: openocd-mac-applesilicon + path: ${{ env.ARTIFACT_PATH }}/* + + build-mac-intel: + runs-on: macos-12 env: BUILD_DIR: build steps: @@ -17,6 +78,7 @@ jobs: run: | export PATH=/usr/local/bin:$PATH export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" + export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" export CFLAGS=-mmacosx-version-min=10.9 export LDFLAGS="-F/System/Library/Frameworks -framework Foundation -framework AppKit -framework IOKit -framework Security" @@ -60,9 +122,10 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: openocd-mac + name: openocd-mac-intel path: ${{ env.ARTIFACT_PATH }}/* + build-linux: runs-on: ubuntu-20.04 env: @@ -246,7 +309,8 @@ jobs: pack: runs-on: ubuntu-latest needs: - - build-mac + - build-mac-applesilicon + - build-mac-intel - build-linux - build-windows-x86 - build-windows-x64 @@ -262,7 +326,10 @@ jobs: echo "$PWD" mkdir bin-darwin_x86_64 - cp -rv ../build/openocd-mac/bin/* bin-darwin_x86_64 + cp -rv ../build/openocd-mac-intel/bin/* bin-darwin_x86_64 + + mkdir bin-darwin_arm64 + cp -rv ../build/openocd-mac-applesilicon/bin/* bin-darwin_arm64 mkdir bin-windows_amd64 cp -rv ../build/openocd-windows-x64/bin/*.exe bin-windows_amd64