14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
- os : [windows-latest]
17
+ os : [windows-latest, ubuntu-latest, macos-13, macos-14 ]
18
18
19
19
steps :
20
20
- uses : actions/checkout@v2
@@ -27,12 +27,40 @@ jobs:
27
27
- name : Install cibuildwheel
28
28
run : pip install cibuildwheel==2.20.0
29
29
30
+ - name : Install Miniconda (Windows only)
31
+ if : runner.os == 'Windows'
32
+ shell : pwsh
33
+ run : |
34
+ $ErrorActionPreference = 'Stop'
35
+ $ProgressPreference = 'SilentlyContinue'
36
+ Write-Host "Downloading Miniconda..."
37
+ Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile "miniconda.exe"
38
+ Write-Host "Installing Miniconda..."
39
+ Start-Process -FilePath "miniconda.exe" -ArgumentList "/S", "/D=$env:UserProfile\Miniconda3" -Wait -NoNewWindow
40
+ Write-Host "Miniconda installed. Configuring..."
41
+ $env:Path = "$env:UserProfile\Miniconda3;$env:UserProfile\Miniconda3\Scripts;$env:UserProfile\Miniconda3\Library\bin;" + $env:Path
42
+ conda init powershell
43
+ conda config --set auto_activate_base false
44
+ conda config --add channels conda-forge
45
+ conda config --set channel_priority strict
46
+ Write-Host "Installing sleef..."
47
+ conda install -y -c conda-forge sleef
48
+ Write-Host "Miniconda setup completed."
49
+
30
50
- name : Build wheels
31
51
run : |
32
52
python -m cibuildwheel --output-dir wheelhouse
33
53
env :
34
54
CIBW_BUILD_VERBOSITY : " 1"
35
55
CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
56
+ CIBW_ENVIRONMENT_WINDOWS : >-
57
+ 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"
62
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
63
+ delvewheel repair -w {dest_dir} {wheel} --add-path %UserProfile%\Miniconda3\Library\bin
36
64
working-directory : ./quaddtype
37
65
38
66
- uses : actions/upload-artifact@v2
0 commit comments