Skip to content

Commit

Permalink
Adjust settings to get CI to build MacOS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Keefe authored and Michael O'Keefe committed Nov 18, 2024
1 parent 3d95985 commit e7a99b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.${{ matrix.python-version }}'
python-version: "3.10"
- name: set up rust
uses: dtolnay/rust-toolchain@stable
- run: |
Expand All @@ -51,14 +51,14 @@ jobs:
run: cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp3${{ matrix.python-version }}-*"
CIBW_SKIP: "*-win32 *-musllinux* *i686 *ppc64le *s390x *aarch64"
CIBW_SKIP: "*-win32 *-musllinux* *i686 *ppc64le *s390x *aarch64 *macosx_arm64"
CIBW_PLATFORM: ${{ matrix.platform || matrix.os }}
# TODO: why doesn't pytest work with cibuildwheel?
# CIBW_TEST_COMMAND: "pytest -v {project}/python/fastsim/tests"
CIBW_TEST_COMMAND: "python -m unittest discover {project}/python/fastsim/tests"
CIBW_ARCHS_MACOS: "universal2"
CIBW_ARCHS_MACOS: "x86_64 universal2"
# see https://cibuildwheel.readthedocs.io/en/stable/faq/#universal2
CIBW_TEST_SKIP: "*_universal2:arm64"
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
Expand Down

0 comments on commit e7a99b9

Please sign in to comment.