Skip to content

Commit

Permalink
Try both intel and arm now
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeetchhetri committed Jul 23, 2024
1 parent b0f40fb commit 4cca420
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 4cca420

Please sign in to comment.