Skip to content

Commit 1fb28ad

Browse files
committed
fixing setup
1 parent 2f65df3 commit 1fb28ad

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/temp.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,35 +43,60 @@ jobs:
4343
conda config --add channels conda-forge
4444
conda config --set channel_priority strict
4545
conda install -y sleef numpy
46+
conda list
47+
if [ ! -f "$CONDA_PREFIX/Library/include/sleef.h" ]; then
48+
echo "sleef.h not found. Installation may have failed."
49+
exit 1
50+
fi
51+
ls -l "$CONDA_PREFIX/Library/include/sleef.h"
52+
ls -l "$CONDA_PREFIX/Library/lib/sleef"*
4653
47-
- name: Install cibuildwheel
54+
- name: Setup build environment
55+
shell: pwsh
56+
run: |
57+
$env:INCLUDE += ";$env:CONDA_PREFIX\Library\include"
58+
$env:LIB += ";$env:CONDA_PREFIX\Library\lib"
59+
$env:PATH = "$env:CONDA_PREFIX\Library\bin;$env:PATH"
60+
echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
61+
echo "LIB=$env:LIB" >> $env:GITHUB_ENV
62+
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
63+
64+
- name: Install build dependencies
4865
shell: bash -l {0}
4966
run: |
5067
pip install -U pip
51-
pip install cibuildwheel==2.20.0
68+
pip install cibuildwheel==2.20.0 ninja meson meson-python numpy delvewheel pytest
5269
5370
- name: Build wheels
5471
env:
5572
CIBW_BUILD: 'cp310-* cp311-* cp312-*'
5673
CIBW_SKIP: 'pp* cp36-* cp37-* cp38-* cp39-* cp313-*'
5774
CIBW_ARCHS_WINDOWS: ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
58-
CIBW_BUILD_VERBOSITY: '1'
75+
CIBW_BUILD_VERBOSITY: '3'
5976
DISTUTILS_USE_SDK: '1'
6077
MSSdk: '1'
6178
CIBW_BEFORE_BUILD: |
62-
pip install meson meson-python ninja numpy delvewheel pytest
79+
pip install meson meson-python ninja numpy
6380
CIBW_REPAIR_WHEEL_COMMAND: 'delvewheel repair -w {dest_dir} {wheel}'
6481
CIBW_TEST_COMMAND: |
6582
pip install {package}[test]
6683
python -m pytest -v {project}/test
67-
CIBW_TEST_EXTRAS: 'test'
84+
CIBW_TEST_EXTRAS: test
6885
CIBW_TEST_FAIL_FAST: 1
6986
shell: pwsh
7087
run: |
7188
python -m cibuildwheel --output-dir wheelhouse
7289
if (-not (Test-Path wheelhouse/*.whl)) { throw "Wheel was not created" }
7390
working-directory: ./quaddtype
7491

92+
- name: Run tests explicitly
93+
shell: pwsh
94+
run: |
95+
$wheel = Get-ChildItem wheelhouse/*.whl | Select-Object -First 1
96+
pip install $wheel[test]
97+
python -m pytest -v ./test
98+
working-directory: ./quaddtype
99+
75100
- uses: actions/upload-artifact@v4
76101
with:
77102
path: ./quaddtype/wheelhouse/*.whl

0 commit comments

Comments
 (0)