1515 name : Build SDist
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v4
18+ - uses : actions/checkout@v6
1919 with :
2020 submodules : true
2121
2525 - name : Check metadata
2626 run : pipx run twine check dist/*
2727
28- - uses : actions/upload-artifact@v4
28+ - uses : actions/upload-artifact@v7
2929 with :
3030 name : artifact-sdist
3131 path : dist/*.tar.gz
@@ -37,15 +37,27 @@ jobs:
3737 strategy :
3838 fail-fast : false
3939 matrix :
40- os : [ubuntu-24.04-arm, ubuntu-latest, windows-2022, macos-14]
40+ include :
41+ - os : ubuntu-24.04-arm
42+ cmake_args : " -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a"
43+ - os : ubuntu-latest
44+ cmake_args : " -DGGML_NATIVE=OFF"
45+ - os : windows-2022
46+ # Whisper.cpp tries to use BMI2 on 32 bit Windows, so disable BMI2 when building on Windows to avoid that bug. See https://github.com/ggml-org/whisper.cpp/pull/3543
47+ # If Windows still crashes after this, the next step would be disabling GGML_AVX, GGML_AVX2, GGML_FMA, and GGML_F16C with:
48+ # -DGGML_AVX=OFF -DGGML_AVX2=OFF -DGGML_FMA=OFF -DGGML_F16C=OFF
49+ # NOTE: these may also help the ubuntu-latest builds as well
50+ cmake_args : " -DGGML_NATIVE=OFF -DGGML_BMI2=OFF -DGGML_AVX512=OFF -DGGML_AVX512_VBMI=OFF -DGGML_AVX512_VNNI=OFF -DGGML_AVX512_BF16=OFF"
51+ - os : macos-14
52+ cmake_args : " -DGGML_NATIVE=OFF"
4153
4254 steps :
43- - uses : actions/checkout@v4
55+ - uses : actions/checkout@v6
4456 with :
4557 submodules : true
4658
4759 # Used to host cibuildwheel
48- - uses : actions/setup-python@v5
60+ - uses : actions/setup-python@v6
4961
5062 - name : Install cibuildwheel
5163 run : python -m pip install cibuildwheel
5668 CIBW_ARCHS : auto
5769 # for windows setup.py repairwheel step should solve it
5870 CIBW_SKIP : pp* cp38-*
59- # Whisper.cpp tries to use BMI2 on 32 bit Windows, so disable BMI2 when building on Windows to avoid that bug. See https://github.com/ggml-org/whisper.cpp/pull/3543
60- CIBW_ENVIRONMENT : CMAKE_ARGS="${{ contains(matrix.os, 'arm') && '-DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a' || ''}} ${{ contains(matrix.os, 'windows') && '-DGGML_BMI2=OFF' || '' }}"
71+ CIBW_ENVIRONMENT : CMAKE_ARGS="${{ matrix.cmake_args }}"
6172
6273 - name : Verify clean directory
6374 run : git diff --exit-code
6778 run : ls wheelhouse
6879
6980 - name : Upload wheels
70- uses : actions/upload-artifact@v4
81+ uses : actions/upload-artifact@v7
7182 with :
7283 name : artifact-${{ matrix.os }}
7384 path : wheelhouse/*.whl
@@ -83,11 +94,11 @@ jobs:
8394 python-version : [3.11, 3.12, 3.13]
8495
8596 steps :
86- - uses : actions/checkout@v4
97+ - uses : actions/checkout@v6
8798 with :
8899 submodules : true
89100
90- - uses : actions/download-artifact@v4
101+ - uses : actions/download-artifact@v8
91102 with :
92103 pattern : artifact-*
93104 merge-multiple : true
98109 ls -l wheelhouse
99110
100111 - name : Set up Python
101- uses : actions/setup-python@v5
112+ uses : actions/setup-python@v6
102113 with :
103114 python-version : ${{ matrix.python-version }}
104115
@@ -123,11 +134,11 @@ jobs:
123134 if : github.event_name == 'release' && github.event.action == 'published'
124135
125136 steps :
126- - uses : actions/setup-python@v5
137+ - uses : actions/setup-python@v6
127138 with :
128139 python-version : " 3.x"
129140
130- - uses : actions/download-artifact@v4
141+ - uses : actions/download-artifact@v8
131142 with :
132143 pattern : artifact-*
133144 merge-multiple : true
0 commit comments