@@ -33,14 +33,14 @@ jobs:
33
33
buildplat :
34
34
- [ubuntu-latest, manylinux, x86_64]
35
35
- [macos-latest, macosx, x86_64]
36
- - [macos-latest , macosx, arm64]
36
+ - [macos-14 , macosx, arm64]
37
37
- [windows-2019, win, amd64]
38
38
python : ["cp38", "cp39", "cp310", "cp311", "cp312"]
39
39
steps :
40
40
- uses : actions/checkout@v4
41
41
- name : Install GSL (Windows / Mac OS x86_64)
42
42
uses : mamba-org/setup-micromamba@v1
43
- if : matrix.buildplat[1] == 'win' || ( matrix.buildplat[1] == 'macosx' && matrix.buildplat[2] == 'x86_64' )
43
+ if : matrix.buildplat[1] == 'win' || matrix.buildplat[1] == 'macosx'
44
44
with :
45
45
environment-name : gsl
46
46
condarc : |
@@ -57,36 +57,14 @@ jobs:
57
57
echo "LIB=$CONDA_PREFIX\\Library\\lib" >> $GITHUB_ENV
58
58
echo "LIBPATH=$CONDA_PREFIX\\Library\\lib" >> $GITHUB_ENV
59
59
echo "$CONDA_PREFIX\\Library\\bin" >> $GITHUB_PATH # necessary when we don't activate the environment
60
- - name : Set GSL environment variables (Mac OS x86_64 )
61
- if : matrix.buildplat[1] == 'macosx' && matrix.buildplat[2] == 'x86_64'
60
+ - name : Set GSL environment variables (Mac OS)
61
+ if : matrix.buildplat[1] == 'macosx'
62
62
shell : bash -l {0}
63
63
run : |
64
64
echo "CFLAGS=-I$CONDA_PREFIX/include" >> $GITHUB_ENV
65
65
echo "LDFLAGS=-L$CONDA_PREFIX/lib" >> $GITHUB_ENV
66
66
echo "REPAIR_LIBRARY_PATH=$CONDA_PREFIX/lib" >> $GITHUB_ENV # https://github.com/pypa/cibuildwheel/issues/816#issuecomment-916197079
67
67
echo "$CONDA_PREFIX/bin" >> $GITHUB_PATH # necessary when we don't activate the environment
68
- - name : Install GSL (Mac OS ARM64) !HACK!
69
- if : matrix.buildplat[1] == 'macosx' && matrix.buildplat[2] == 'arm64'
70
- run : |
71
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/gsl-2.7-h6e638da_0.tar.bz2
72
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/libblas-3.9.0-16_osxarm64_openblas.tar.bz2
73
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/libcblas-3.9.0-16_osxarm64_openblas.tar.bz2
74
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/libopenblas-0.3.21-openmp_hc731615_3.tar.bz2
75
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/libgfortran-5.0.0-11_3_0_hd922786_25.tar.bz2
76
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/libgfortran5-11.3.0-hdaf2cc0_25.tar.bz2
77
- curl -O https://conda.anaconda.org/conda-forge/osx-arm64/llvm-openmp-14.0.4-hd125106_0.tar.bz2
78
- mkdir gsl
79
- tar -xjf gsl-2.7-h6e638da_0.tar.bz2 -C gsl
80
- tar -xjf libblas-3.9.0-16_osxarm64_openblas.tar.bz2 -C gsl
81
- tar -xjf libcblas-3.9.0-16_osxarm64_openblas.tar.bz2 -C gsl
82
- tar -xjf libopenblas-0.3.21-openmp_hc731615_3.tar.bz2 -C gsl
83
- tar -xjf libgfortran-5.0.0-11_3_0_hd922786_25.tar.bz2 -C gsl
84
- tar -xjf libgfortran5-11.3.0-hdaf2cc0_25.tar.bz2 -C gsl
85
- tar -xjf llvm-openmp-14.0.4-hd125106_0.tar.bz2 -C gsl
86
- rsync -azv gsl/bin/ /usr/local/bin/
87
- rsync -azv gsl/include/ /usr/local/include/
88
- rsync -azv gsl/lib/ /usr/local/lib/
89
- echo "REPAIR_LIBRARY_PATH=/usr/local/lib/" >> $GITHUB_ENV # https://github.com/pypa/cibuildwheel/issues/816#issuecomment-916197079
90
68
- name : Build wheels
91
69
uses : pypa/cibuildwheel@v2.16
92
70
env :
0 commit comments