Skip to content

Commit

Permalink
fixup! Use new GitHub native aarch64 macOS runners
Browse files Browse the repository at this point in the history
Set -arch instead of -target, and unconditionally set LZ4_INSTALL_DIR
  • Loading branch information
godlygeek committed Jan 31, 2024
1 parent 002b5e7 commit e28a853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ jobs:
run: |
tar zxvf dist/*.tar.gz --strip-components=1
- name: Sets env vars for compilation
run: |
echo "LZ4_INSTALL_DIR=/tmp/lz4_install/usr/local/" >> $GITHUB_ENV
echo "CFLAGS=-arch ${{matrix.arch}}" >> $GITHUB_ENV
- name: Set arm64-specific environment variables
if: matrix.arch == 'arm64'
run: |
echo "CFLAGS=-target aarch64-apple-darwin" >> $GITHUB_ENV
echo "MEMRAY_LIBBACKTRACE_TARGET=aarch64-apple-darwin" >> $GITHUB_ENV
echo "LZ4_INSTALL_DIR=/tmp/lz4_install/usr/local/" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/[email protected]
env:
Expand Down

0 comments on commit e28a853

Please sign in to comment.