Skip to content

Commit 002b5e7

Browse files
committed
fixup! Use new GitHub native aarch64 macOS runners
Keep architecture in macos stage/artifact names
1 parent d870802 commit 002b5e7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build_wheels.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,15 @@ jobs:
9393

9494
build_macosx_wheels:
9595
needs: [build_sdist]
96-
name: macosx_${{ matrix.os }} wheels
96+
name: macosx_${{ matrix.arch }} wheels
9797
runs-on: ${{ matrix.os }}
9898
strategy:
9999
matrix:
100-
os: [macos-11, macos-14]
100+
include:
101+
- os: macos-11
102+
arch: x86_64
103+
- os: macos-14
104+
arch: arm64
101105
steps:
102106
- uses: actions/download-artifact@v4
103107
with:
@@ -111,7 +115,7 @@ jobs:
111115
run: |
112116
tar zxvf dist/*.tar.gz --strip-components=1
113117
- name: Sets env vars for compilation
114-
if: matrix.os == 'macos-14'
118+
if: matrix.arch == 'arm64'
115119
run: |
116120
echo "CFLAGS=-target aarch64-apple-darwin" >> $GITHUB_ENV
117121
echo "MEMRAY_LIBBACKTRACE_TARGET=aarch64-apple-darwin" >> $GITHUB_ENV
@@ -130,7 +134,7 @@ jobs:
130134
DYLD_LIBRARY_PATH: "${{env.LZ4_INSTALL_DIR}}/lib"
131135
- uses: actions/upload-artifact@v4
132136
with:
133-
name: macosx_${{ matrix.os }}-wheels
137+
name: macosx_${{ matrix.arch }}-wheels
134138
path: ./wheelhouse/*.whl
135139

136140
build_and_test_wheels:

0 commit comments

Comments
 (0)