Skip to content

Commit

Permalink
Fix macOS binary architecture setting in CI build (#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Dec 5, 2023
1 parent a00a72a commit 86b82d4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/mac-precompiled-bin-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
make install
env:
MACOSX_DEPLOYMENT_TARGET: 11.0
ARCHFLAGS: "-arch arm64"
CMAKE_OSX_ARCHITECTURES: "arm64"

- name: Collect artifacts
run: |
Expand All @@ -28,6 +28,13 @@ jobs:
mv install/lib/libkuzu.dylib .
mv install/bin/kuzu_shell kuzu
- name: Verify binary information
run: |
file -b kuzu
otool -l kuzu | grep minos
file -b libkuzu.dylib
otool -l libkuzu.dylib | grep minos
- uses: actions/upload-artifact@v3
with:
name: libkuzu-osx-arm64
Expand Down Expand Up @@ -55,7 +62,7 @@ jobs:
make install
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
ARCHFLAGS: "-arch x86_64"
CMAKE_OSX_ARCHITECTURES: "x86_64"

- name: Collect artifacts
run: |
Expand All @@ -64,6 +71,13 @@ jobs:
mv install/lib/libkuzu.dylib .
mv install/bin/kuzu_shell kuzu
- name: Verify binary information
run: |
file -b kuzu
otool -l kuzu | grep minos
file -b libkuzu.dylib
otool -l libkuzu.dylib | grep minos
- uses: actions/upload-artifact@v3
with:
name: libkuzu-osx-x86_64
Expand Down

0 comments on commit 86b82d4

Please sign in to comment.