-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (37 loc) · 1004 Bytes
/
Copy pathclang-cl.yml
File metadata and controls
43 lines (37 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build using clang-cl on Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_wheels:
runs-on: windows-latest
name: Build wheel using clang-cl on Windows
strategy:
fail-fast: false
matrix:
python: [cp312]
defaults:
run:
shell: bash
env:
BUILD_COMMIT: "main"
CIBW_BUILD: ${{ matrix.python }}-*
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_MACOS: native
CIBW_SKIP: "pp* *-musllinux_* *-win32"
CIBW_TEST_REQUIRES: pytest pytest-xdist
CIBW_TEST_COMMAND: python -c "import randomgen; randomgen.test(['--skip-slow','-n','2'])"
CIBW_ENVIRONMENT: 'CC="clang-cl"'
MKL_NUM_THREADS: 1
OMP_NUM_THREADS: 1
OPENLAS_NUM_THREADS: 1
steps:
- uses: actions/checkout@v7
- name: Get clang-cl version
run: clang-cl --version
- name: Build wheels
uses: pypa/cibuildwheel@v4.2
with:
output-dir: wheelhouse