Skip to content

Commit e9d82f0

Browse files
committed
Run pip under correct arch in macOS CI
1 parent fbaded9 commit e9d82f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/system.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ jobs:
5353
with:
5454
python-version: ${{ matrix.python-version }}
5555
architecture: ${{ matrix.architecture }}
56-
- run: python -m pip install --user numpy
56+
- name: Install numpy
57+
run: python -m pip install --user numpy
58+
if: ${{ !(matrix.os == 'macos-latest' && matrix.architecture == 'x64') }}
59+
- name: Install numpy (macOS x64 — run pip under Rosetta for x86_64 wheels)
60+
run: arch -x86_64 python -m pip install --user numpy
61+
if: ${{ matrix.os == 'macos-latest' && matrix.architecture == 'x64' }}
5762
- run: python -m pip install virtualenv
5863
- run: virtualenv --version
5964
- name: Setup julia

0 commit comments

Comments
 (0)