From 4cca4209dcdd09b1f7bc7478462ab93808b67653 Mon Sep 17 00:00:00 2001 From: Sumeet Chhetri Date: Tue, 23 Jul 2024 12:16:33 +0530 Subject: [PATCH] Try both intel and arm now --- .github/workflows/ci-macos.yml | 37 +++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index cf5386e..1efcd79 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - macos: + macos-intel: runs-on: ${{ matrix.os }} if: "!contains(github.event.head_commit.message, '[skip_build]')" strategy: @@ -42,3 +42,38 @@ jobs: ls -ltr bin/ ./bin/schema_gen --help ./bin/diff_gen --help + macos-arm: + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, '[skip_build]')" + strategy: + matrix: + os: [macos-latest] + steps: + - uses: actions/checkout@v2 + - name: Build + run: | + brew install pkg-config go protobuf protoc-gen-go + make all_wo_orcl + ls -ltr bin/ + ./bin/schema_gen --help + ./bin/diff_gen --help + rm -rf bin + git checkout schema_gen/schema_gen.go go.mod go.sum + pushd /tmp + wget -q https://download.oracle.com/otn_software/mac/instantclient/233023/instantclient-basic-macos.arm64-23.3.0.23.09-1.dmg + wget -q https://download.oracle.com/otn_software/mac/instantclient/233023/instantclient-sdk-macos.arm64-23.3.0.23.09.dmg + sudo hdiutil attach instantclient-basic-macos.arm64-23.3.0.23.09-1.dmg + sudo hdiutil attach instantclient-sdk-macos.arm64-23.3.0.23.09.dmg + cd /Volumes/instantclient-basic-macos.arm64-23.3.0.23.09-1 + ./install_ic.sh + cd /Volumes/instantclient-sdk-macos.arm64-23.3.0.23.09 + ./install_ic.sh + popd + cp oci8-macos.pc /Users/runner/Downloads/instantclient_23_3/oci8.pc + export LD_LIBRARY_PATH=/Users/runner/Downloads/instantclient_23_3:$LD_LIBRARY_PATH + export DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH + export PKG_CONFIG_PATH=/Users/runner/Downloads/instantclient_23_3:$PKG_CONFIG_PATH + make all + ls -ltr bin/ + ./bin/schema_gen --help + ./bin/diff_gen --help