Skip to content

Commit 032fc87

Browse files
authored
Merge pull request #185 from fabinsch/windows-wheels
CI: pip wheels on windows
2 parents cfab308 + 4a036a1 commit 032fc87

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
name: Build ${{ matrix.os }} ${{ matrix.python-version }}
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
16-
os: [ubuntu-latest, macos-latest, self-hosted-arm64]
17+
os: [ubuntu-latest, macos-latest, self-hosted-arm64, windows-2019, windows-latest]
18+
include:
19+
- os: windows-2019
20+
toolset: ClangCl
21+
- os: windows-latest
22+
toolset: v143
1723
exclude:
1824
- os: self-hosted-arm64
1925
python-version: 3.7
@@ -34,7 +40,7 @@ jobs:
3440
git submodule update
3541
3642
- name: Setup conda
37-
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
43+
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
3844
uses: conda-incubator/setup-miniconda@v2
3945
with:
4046
miniforge-variant: Mambaforge
@@ -44,15 +50,15 @@ jobs:
4450
activate-environment: proxsuite
4551

4652
- name: Install dependencies [Conda]
47-
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
53+
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
4854
shell: bash -l {0}
4955
run: |
5056
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
5157
conda config --remove channels defaults
5258
mamba install doxygen graphviz eigen simde cmake compilers
5359
5460
- name: Print environment [Conda]
55-
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
61+
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
5662
shell: bash -l {0}
5763
run: |
5864
conda info
@@ -65,6 +71,17 @@ jobs:
6571
run: |
6672
pip wheel . -w dist
6773
74+
- name: Build wheel on windows
75+
if: contains(matrix.os, 'windows')
76+
shell: bash -l {0}
77+
env :
78+
CMEEL_CMAKE_ARGS: "-T${{ matrix.toolset }} -DBUILD_PYTHON_INTERFACE=ON -DBUILD_WITH_VECTORIZATION_SUPPORT=ON -DINSTALL_DOCUMENTATION=OFF"
79+
CMEEL_RUN_TESTS: False
80+
CMEEL_JOBS: 1
81+
CMEEL_LOG_LEVEL: Debug
82+
run: |
83+
pip wheel . -w dist
84+
6885
- name: Turn off vectorization in pyproject.toml [arm64]
6986
if: contains(matrix.os, 'self-hosted')
7087
uses: jannekem/run-python-script-action@v1

0 commit comments

Comments
 (0)