55 branches :
66 - main
77 tags :
8- - " quaddtype-v*"
8+ - ' quaddtype-v*'
99 paths :
10- - " quaddtype/**"
10+ - ' quaddtype/**'
1111 pull_request :
1212 paths :
13- - " quaddtype/**"
13+ - ' quaddtype/**'
1414 workflow_dispatch :
1515
1616jobs :
@@ -23,16 +23,16 @@ jobs:
2323 - name : Set up Python
2424 uses : actions/setup-python@v4
2525 with :
26- python-version : " >=3.10.0"
26+ python-version : ' >=3.10.0'
2727
2828 - name : Install cibuildwheel
2929 run : pip install cibuildwheel==2.20.0
3030
3131 - name : Build wheels
3232 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'
3434 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
35- CIBW_BUILD_VERBOSITY : " 3 "
35+ CIBW_BUILD_VERBOSITY : ' 3 '
3636 CIBW_BEFORE_ALL : |
3737 git clone https://github.com/shibatch/sleef.git
3838 cd sleef
4949 CIBW_TEST_COMMAND : |
5050 pip install {package}[test]
5151 pytest {project}/tests
52- CIBW_TEST_EXTRAS : " test"
52+ CIBW_TEST_EXTRAS : ' test'
5353 run : |
5454 python -m cibuildwheel --output-dir wheelhouse
5555 working-directory : ./quaddtype
@@ -72,11 +72,11 @@ jobs:
7272 - name : Set up Python
7373 uses : actions/setup-python@v4
7474 with :
75- python-version : " 3.10"
75+ python-version : ' 3.10'
7676
7777 - name : Install SLEEF
7878 env :
79- MACOSX_DEPLOYMENT_TARGET : " 11.0"
79+ MACOSX_DEPLOYMENT_TARGET : ' 11.0'
8080 run : |
8181 git clone https://github.com/shibatch/sleef.git
8282 cd sleef
9494
9595 - name : Build wheels
9696 env :
97- CIBW_BUILD : " cp310-* cp311-* cp312-*"
97+ CIBW_BUILD : ' cp310-* cp311-* cp312-*'
9898 CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
99- CIBW_BUILD_VERBOSITY : " 1 "
99+ CIBW_BUILD_VERBOSITY : ' 1 '
100100 CIBW_ENVIRONMENT : >
101101 MACOSX_DEPLOYMENT_TARGET="11.0"
102102 DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH"
@@ -108,7 +108,7 @@ jobs:
108108 CIBW_TEST_COMMAND : |
109109 pip install {package}[test]
110110 pytest {project}/tests
111- CIBW_TEST_EXTRAS : " test"
111+ CIBW_TEST_EXTRAS : ' test'
112112 run : |
113113 python -m cibuildwheel --output-dir wheelhouse
114114 working-directory : ./quaddtype
@@ -136,29 +136,27 @@ jobs:
136136 - name : Set up Python 3.10
137137 uses : actions/setup-python@v4
138138 with :
139- python-version : " 3.10"
139+ python-version : ' 3.10'
140140 architecture : ${{ matrix.architecture }}
141141
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
148144
149- - name : Install SLEEF and other dependencies
150- shell : bash -l {0}
145+ - name : Clone and Build SLEEF
146+ shell : pwsh
151147 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
155153
156154 - name : Setup build environment
157155 shell : pwsh
158156 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"
162160 echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
163161 echo "LIB=$env:LIB" >> $env:GITHUB_ENV
164162 echo "PATH=$env:PATH" >> $env:GITHUB_ENV
@@ -171,15 +169,15 @@ jobs:
171169
172170 - name : Build wheels
173171 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-*'
176174 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 '
180178 CIBW_BEFORE_BUILD : |
181179 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 '
183181 CIBW_TEST_COMMAND : |
184182 pip install {package}[test]
185183 python -m pytest -v {project}/test
0 commit comments