Skip to content

Commit

Permalink
fixup! Use new GitHub native aarch64 macOS runners
Browse files Browse the repository at this point in the history
Keep architecture in macos stage/artifact names
  • Loading branch information
godlygeek committed Jan 31, 2024
1 parent d870802 commit 002b5e7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,15 @@ jobs:

build_macosx_wheels:
needs: [build_sdist]
name: macosx_${{ matrix.os }} wheels
name: macosx_${{ matrix.arch }} wheels
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-14]
include:
- os: macos-11
arch: x86_64
- os: macos-14
arch: arm64
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -111,7 +115,7 @@ jobs:
run: |
tar zxvf dist/*.tar.gz --strip-components=1
- name: Sets env vars for compilation
if: matrix.os == 'macos-14'
if: matrix.arch == 'arm64'
run: |
echo "CFLAGS=-target aarch64-apple-darwin" >> $GITHUB_ENV
echo "MEMRAY_LIBBACKTRACE_TARGET=aarch64-apple-darwin" >> $GITHUB_ENV
Expand All @@ -130,7 +134,7 @@ jobs:
DYLD_LIBRARY_PATH: "${{env.LZ4_INSTALL_DIR}}/lib"
- uses: actions/upload-artifact@v4
with:
name: macosx_${{ matrix.os }}-wheels
name: macosx_${{ matrix.arch }}-wheels
path: ./wheelhouse/*.whl

build_and_test_wheels:
Expand Down

0 comments on commit 002b5e7

Please sign in to comment.