Skip to content

Commit 328cad6

Browse files
committed
fixing win
1 parent 3def6f9 commit 328cad6

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/build_wheels_and_release.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,32 @@ jobs:
4747
conda install -y -c conda-forge sleef
4848
Write-Host "Miniconda setup completed."
4949
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+
5063
- name: Build wheels
51-
run: |
52-
python -m cibuildwheel --output-dir wheelhouse
64+
run: python -m cibuildwheel --output-dir wheelhouse
5365
env:
5466
CIBW_BUILD_VERBOSITY: "1"
5567
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
5668
CIBW_ENVIRONMENT_WINDOWS: >-
5769
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"
6274
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"
6476
working-directory: ./quaddtype
6577

6678
- uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)