5
5
branches :
6
6
- main
7
7
tags :
8
- - " quaddtype-v*"
8
+ - ' quaddtype-v*'
9
9
paths :
10
- - " quaddtype/**"
10
+ - ' quaddtype/**'
11
11
pull_request :
12
12
paths :
13
- - " quaddtype/**"
13
+ - ' quaddtype/**'
14
14
workflow_dispatch :
15
15
16
16
jobs :
@@ -23,16 +23,16 @@ jobs:
23
23
- name : Set up Python
24
24
uses : actions/setup-python@v4
25
25
with :
26
- python-version : " >=3.10.0"
26
+ python-version : ' >=3.10.0'
27
27
28
28
- name : Install cibuildwheel
29
29
run : pip install cibuildwheel==2.20.0
30
30
31
31
- name : Build wheels
32
32
env :
33
- CIBW_BUILD : " cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
33
+ CIBW_BUILD : ' cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64'
34
34
CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
35
- CIBW_BUILD_VERBOSITY : " 3 "
35
+ CIBW_BUILD_VERBOSITY : ' 3 '
36
36
CIBW_BEFORE_ALL : |
37
37
git clone https://github.com/shibatch/sleef.git
38
38
cd sleef
49
49
CIBW_TEST_COMMAND : |
50
50
pip install {package}[test]
51
51
pytest {project}/tests
52
- CIBW_TEST_EXTRAS : " test"
52
+ CIBW_TEST_EXTRAS : ' test'
53
53
run : |
54
54
python -m cibuildwheel --output-dir wheelhouse
55
55
working-directory : ./quaddtype
@@ -72,11 +72,11 @@ jobs:
72
72
- name : Set up Python
73
73
uses : actions/setup-python@v4
74
74
with :
75
- python-version : " 3.10"
75
+ python-version : ' 3.10'
76
76
77
77
- name : Install SLEEF
78
78
env :
79
- MACOSX_DEPLOYMENT_TARGET : " 11.0"
79
+ MACOSX_DEPLOYMENT_TARGET : ' 11.0'
80
80
run : |
81
81
git clone https://github.com/shibatch/sleef.git
82
82
cd sleef
94
94
95
95
- name : Build wheels
96
96
env :
97
- CIBW_BUILD : " cp310-* cp311-* cp312-*"
97
+ CIBW_BUILD : ' cp310-* cp311-* cp312-*'
98
98
CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
99
- CIBW_BUILD_VERBOSITY : " 1 "
99
+ CIBW_BUILD_VERBOSITY : ' 1 '
100
100
CIBW_ENVIRONMENT : >
101
101
MACOSX_DEPLOYMENT_TARGET="11.0"
102
102
DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH"
@@ -108,7 +108,7 @@ jobs:
108
108
CIBW_TEST_COMMAND : |
109
109
pip install {package}[test]
110
110
pytest {project}/tests
111
- CIBW_TEST_EXTRAS : " test"
111
+ CIBW_TEST_EXTRAS : ' test'
112
112
run : |
113
113
python -m cibuildwheel --output-dir wheelhouse
114
114
working-directory : ./quaddtype
@@ -136,29 +136,27 @@ jobs:
136
136
- name : Set up Python 3.10
137
137
uses : actions/setup-python@v4
138
138
with :
139
- python-version : " 3.10"
139
+ python-version : ' 3.10'
140
140
architecture : ${{ matrix.architecture }}
141
141
142
- - name : Install Miniconda
143
- uses : conda-incubator/setup-miniconda@v3
144
- with :
145
- auto-update-conda : true
146
- python-version : " 3.10"
147
- architecture : ${{ matrix.architecture }}
142
+ - name : Install CMake
143
+ uses : lukka/get-cmake@latest
148
144
149
- - name : Install SLEEF and other dependencies
150
- shell : bash -l {0}
145
+ - name : Clone and Build SLEEF
146
+ shell : pwsh
151
147
run : |
152
- conda config --add channels conda-forge
153
- conda config --set channel_priority strict
154
- conda install -y sleef numpy
148
+ git clone https://github.com/shibatch/sleef.git
149
+ cd sleef
150
+ cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.architecture == 'x86' && 'Win32' || 'x64' }} -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
151
+ cmake --build build --config Release --parallel
152
+ cmake --install build --prefix "C:/sleef" --config Release
155
153
156
154
- name : Setup build environment
157
155
shell : pwsh
158
156
run : |
159
- $env:INCLUDE += ";$env:CONDA_PREFIX\Library \include"
160
- $env:LIB += ";$env:CONDA_PREFIX\Library \lib"
161
- $env:PATH = "$env:CONDA_PREFIX\Library \bin;$env:PATH"
157
+ $env:INCLUDE += ";C:\sleef \include"
158
+ $env:LIB += ";C:\sleef \lib"
159
+ $env:PATH = "C:\sleef \bin;$env:PATH"
162
160
echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
163
161
echo "LIB=$env:LIB" >> $env:GITHUB_ENV
164
162
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
@@ -171,15 +169,15 @@ jobs:
171
169
172
170
- name : Build wheels
173
171
env :
174
- CIBW_BUILD : " cp310-* cp311-* cp312-*"
175
- CIBW_SKIP : " pp* cp36-* cp37-* cp38-* cp39-* cp313-*"
172
+ CIBW_BUILD : ' cp310-* cp311-* cp312-*'
173
+ CIBW_SKIP : ' pp* cp36-* cp37-* cp38-* cp39-* cp313-*'
176
174
CIBW_ARCHS_WINDOWS : ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
177
- CIBW_BUILD_VERBOSITY : " 3 "
178
- DISTUTILS_USE_SDK : " 1 "
179
- MSSdk : " 1 "
175
+ CIBW_BUILD_VERBOSITY : ' 3 '
176
+ DISTUTILS_USE_SDK : ' 1 '
177
+ MSSdk : ' 1 '
180
178
CIBW_BEFORE_BUILD : |
181
179
pip install meson meson-python ninja numpy
182
- CIBW_REPAIR_WHEEL_COMMAND : " delvewheel repair -w {dest_dir} {wheel}"
180
+ CIBW_REPAIR_WHEEL_COMMAND : ' delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin '
183
181
CIBW_TEST_COMMAND : |
184
182
pip install {package}[test]
185
183
python -m pytest -v {project}/test
0 commit comments