Skip to content

Commit a8264f9

Browse files
authored
Fixing that macos aarch64 and x86_64 zips are producing the same wheels (#101)
* Fixing that macos aarch64 and x86_64 zips are producing the same wheels * Excluding testing macos version that can't test normally * Upload only 1 quantum-pecos wheel since pure Python * Resetting flag so artifacts aren't generate all the time
1 parent d242d17 commit a8264f9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/python-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
command: build
146146
args: --release --out dist --interpreter python${{ matrix.python-version }}
147147
working-directory: python/pecos-rslib
148-
target: ${{ matrix.architecture == 'aarch64' && (matrix.os == 'macos-latest' && 'aarch64-apple-darwin' || 'aarch64-unknown-linux-gnu') || '' }}
148+
target: ${{ matrix.architecture == 'aarch64' && (matrix.os == 'macos-latest' && 'aarch64-apple-darwin' || 'aarch64-unknown-linux-gnu') || (matrix.os == 'macos-latest' && 'x86_64-apple-darwin' || '') }}
149149
manylinux: auto
150150

151151
- name: Restore README.md
@@ -159,7 +159,7 @@ jobs:
159159
fi
160160
161161
- name: Test wheel
162-
if: matrix.architecture == 'x86_64'
162+
if: ${{ !(matrix.architecture == 'x86_64' && matrix.os == 'macos-latest') && matrix.architecture != 'aarch64' }}
163163
run: |
164164
pip install --force-reinstall --verbose python/pecos-rslib/dist/*.whl
165165
python -c 'import pecos_rslib; print(pecos_rslib.__version__)'
@@ -264,6 +264,7 @@ jobs:
264264
265265
- name: Upload quantum-pecos wheel
266266
uses: actions/upload-artifact@v4
267+
if: matrix.python-version == '3.10'
267268
with:
268-
name: wheel-quantum-pecos-py${{ matrix.python-version }}
269+
name: wheel-quantum-pecos
269270
path: python/quantum-pecos/dist/*.whl

0 commit comments

Comments
 (0)