@@ -47,20 +47,32 @@ jobs:
47
47
conda install -y -c conda-forge sleef
48
48
Write-Host "Miniconda setup completed."
49
49
50
+ # Set environment variables for the build
51
+ $env:INCLUDE = "$env:UserProfile\Miniconda3\Library\include;$env:INCLUDE"
52
+ $env:LIB = "$env:UserProfile\Miniconda3\Library\lib;$env:LIB"
53
+ $env:SLEEF_INCLUDE_DIR = "$env:UserProfile\Miniconda3\Library\include"
54
+ $env:SLEEF_LIBRARY = "$env:UserProfile\Miniconda3\Library\lib"
55
+
56
+ # Make the environment variables available to subsequent steps
57
+ echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
58
+ echo "LIB=$env:LIB" >> $env:GITHUB_ENV
59
+ echo "SLEEF_INCLUDE_DIR=$env:SLEEF_INCLUDE_DIR" >> $env:GITHUB_ENV
60
+ echo "SLEEF_LIBRARY=$env:SLEEF_LIBRARY" >> $env:GITHUB_ENV
61
+ echo "$env:UserProfile\Miniconda3;$env:UserProfile\Miniconda3\Scripts;$env:UserProfile\Miniconda3\Library\bin" >> $env:GITHUB_PATH
62
+
50
63
- name : Build wheels
51
- run : |
52
- python -m cibuildwheel --output-dir wheelhouse
64
+ run : python -m cibuildwheel --output-dir wheelhouse
53
65
env :
54
66
CIBW_BUILD_VERBOSITY : " 1"
55
67
CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
56
68
CIBW_ENVIRONMENT_WINDOWS : >-
57
69
PATH="$env:UserProfile\Miniconda3\Scripts;$env:UserProfile\Miniconda3\Library\bin;$env:PATH"
58
- INCLUDE="$env:UserProfile\Miniconda3\Library\include;$env: INCLUDE"
59
- LIB="$env:UserProfile\Miniconda3\Library\lib;$env: LIB"
60
- SLEEF_INCLUDE_DIR="$env:UserProfile\Miniconda3\Library\include "
61
- SLEEF_LIBRARY="$env:UserProfile\Miniconda3\Library\lib "
70
+ INCLUDE="$env:INCLUDE"
71
+ LIB="$env:LIB"
72
+ SLEEF_INCLUDE_DIR="$env:SLEEF_INCLUDE_DIR "
73
+ SLEEF_LIBRARY="$env:SLEEF_LIBRARY "
62
74
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
63
- delvewheel repair -w {dest_dir} {wheel} --add-path %UserProfile%\Miniconda3\Library\bin
75
+ python -m pip install delvewheel && python -m delvewheel repair -w {dest_dir} {wheel} --add-path " %UserProfile%\Miniconda3\Library\bin"
64
76
working-directory : ./quaddtype
65
77
66
78
- uses : actions/upload-artifact@v2
0 commit comments