14
14
runs-on : ${{ matrix.os }}
15
15
strategy :
16
16
matrix :
17
- os : [windows -latest]
17
+ os : [ubuntu -latest, macos-13, macos-14 ]
18
18
19
19
steps :
20
20
- uses : actions/checkout@v2
@@ -27,53 +27,12 @@ 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
- pip install cibuildwheel==2.20.0
49
- Write-Host "Miniconda setup completed."
50
-
51
- # Set environment variables for the build
52
- $env:INCLUDE = "$env:UserProfile\Miniconda3\Library\include;$env:INCLUDE"
53
- $env:LIB = "$env:UserProfile\Miniconda3\Library\lib;$env:LIB"
54
- $env:SLEEF_INCLUDE_DIR = "$env:UserProfile\Miniconda3\Library\include"
55
- $env:SLEEF_LIBRARY = "$env:UserProfile\Miniconda3\Library\lib"
56
-
57
- # Make the environment variables available to subsequent steps
58
- echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
59
- echo "LIB=$env:LIB" >> $env:GITHUB_ENV
60
- echo "SLEEF_INCLUDE_DIR=$env:SLEEF_INCLUDE_DIR" >> $env:GITHUB_ENV
61
- echo "SLEEF_LIBRARY=$env:SLEEF_LIBRARY" >> $env:GITHUB_ENV
62
- echo "$env:UserProfile\Miniconda3;$env:UserProfile\Miniconda3\Scripts;$env:UserProfile\Miniconda3\Library\bin" >> $env:GITHUB_PATH
63
-
64
30
- name : Build wheels
65
- run : python -m cibuildwheel --output-dir wheelhouse
31
+ run : |
32
+ python -m cibuildwheel --output-dir wheelhouse
66
33
env :
67
34
CIBW_BUILD_VERBOSITY : " 1"
68
35
CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
69
- CIBW_ENVIRONMENT_WINDOWS : >-
70
- PATH="$env:UserProfile\Miniconda3\Scripts;$env:UserProfile\Miniconda3\Library\bin;$env:PATH"
71
- INCLUDE="$env:INCLUDE"
72
- LIB="$env:LIB"
73
- SLEEF_INCLUDE_DIR="$env:SLEEF_INCLUDE_DIR"
74
- SLEEF_LIBRARY="$env:SLEEF_LIBRARY"
75
- CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
76
- python -m pip install delvewheel && python -m delvewheel repair -w {dest_dir} {wheel} --add-path "%UserProfile%\Miniconda3\Library\bin"
77
36
working-directory : ./quaddtype
78
37
79
38
- uses : actions/upload-artifact@v2
0 commit comments