Skip to content

Commit

Permalink
Merge branch 'topic/default/wheels-windows-clang-cl' into 'branch/def…
Browse files Browse the repository at this point in the history
…ault'

Build wheels on Windows with clang-cl

See merge request fluiddyn/fluidimage!86
  • Loading branch information
paugier committed Mar 31, 2024
2 parents c804607 + d77d9b1 commit 349b5dc
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,53 @@ jobs:
include:
- os: ubuntu
architecture: x86_64
# really long (2 hours), see next job wheel-ubuntu-aarch64
# really long (2 hours), see job wheel-ubuntu-aarch64
# - os: ubuntu
# architecture: aarch64
- os: macos
architecture: x86_64
- os: macos
architecture: arm64
- os: windows
architecture: AMD64
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v2
- uses: actions/setup-python@v5
with:
platforms: arm64
if: runner.os == 'Linux' && matrix.architecture == 'aarch64'
python-version: 3.x
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: pp* cp36-* cp37-* cp38-* *-musllinux*
CIBW_ARCHS: ${{ matrix.architecture }}
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-${{ matrix.architecture }}
path: wheelhouse/*.whl

wheels-windows:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
include:
- os: windows
architecture: AMD64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: pp* cp36-* cp37-* cp38-* *-musllinux*
CIBW_ARCHS: ${{ matrix.architecture }}
# increase pip debugging output
# CIBW_BUILD_VERBOSITY: 2
# define CC, CXX so meson will use clang-cl instead of MSVC
CC: clang-cl
CXX: clang-cl
# -Wl,-S equivalent to gcc's -Wl,--strip-debug
LDFLAGS: "-Wl,-S"
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-${{ matrix.architecture }}
Expand Down Expand Up @@ -104,6 +126,7 @@ jobs:
startsWith(github.ref, 'refs/tags/')
needs:
- wheels
- wheels-windows
- wheel-ubuntu-aarch64
- sdist
- check-sdist
Expand Down

0 comments on commit 349b5dc

Please sign in to comment.