Skip to content

Commit 41ed36c

Browse files
committed
ci: updated action versions, trying to build wasm wheels in cibuildwheel
1 parent 2bdc042 commit 41ed36c

1 file changed

Lines changed: 17 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Build wheels (manylinux)
25-
uses: pypa/cibuildwheel@v3.3.0
25+
uses: pypa/cibuildwheel@v3.4.1
2626
env:
2727
CIBW_BEFORE_BUILD: "yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
2828
CIBW_BUILD: "*-manylinux_x86_64"
2929

3030
- name: Build wheels (musllinux)
31-
uses: pypa/cibuildwheel@v3.3.0
31+
uses: pypa/cibuildwheel@v3.4.1
3232
env:
3333
CIBW_BEFORE_BUILD: "apk add flex bison libxml2-dev zlib-dev cairo-dev && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
3434
CIBW_BUILD: "*-musllinux_x86_64"
3535
CIBW_TEST_COMMAND: "cd {project} && pip install --prefer-binary '.[test-musl]' && python -m pytest -v tests"
3636

37-
- uses: actions/upload-artifact@v6
37+
- uses: actions/upload-artifact@v7
3838
with:
3939
name: wheels-linux-x86_64
4040
path: ./wheelhouse/*.whl
@@ -49,13 +49,13 @@ jobs:
4949
fetch-depth: 0
5050

5151
- name: Build wheels (manylinux)
52-
uses: pypa/cibuildwheel@v3.3.0
52+
uses: pypa/cibuildwheel@v3.4.1
5353
env:
5454
CIBW_BEFORE_BUILD: "yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
5555
CIBW_ARCHS_LINUX: aarch64
5656
CIBW_BUILD: "*-manylinux_aarch64"
5757

58-
- uses: actions/upload-artifact@v6
58+
- uses: actions/upload-artifact@v7
5959
with:
6060
name: wheels-linux-aarch64-manylinux
6161
path: ./wheelhouse/*.whl
@@ -70,14 +70,14 @@ jobs:
7070
fetch-depth: 0
7171

7272
- name: Build wheels (musllinux)
73-
uses: pypa/cibuildwheel@v3.3.0
73+
uses: pypa/cibuildwheel@v3.4.1
7474
env:
7575
CIBW_BEFORE_BUILD: "apk add flex bison libxml2-dev zlib-dev cairo-dev && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
7676
CIBW_ARCHS_LINUX: aarch64
7777
CIBW_BUILD: "*-musllinux_aarch64"
7878
CIBW_TEST_COMMAND: "cd {project} && pip install --prefer-binary '.[test-musl]' && python -m pytest -v tests"
7979

80-
- uses: actions/upload-artifact@v6
80+
- uses: actions/upload-artifact@v7
8181
with:
8282
name: wheels-linux-aarch64-musllinux
8383
path: ./wheelhouse/*.whl
@@ -133,14 +133,14 @@ jobs:
133133
cmake --install .
134134
135135
- name: Build wheels
136-
uses: pypa/cibuildwheel@v3.3.0
136+
uses: pypa/cibuildwheel@v3.4.1
137137
env:
138138
CIBW_ARCHS_MACOS: "${{ matrix.wheel_arch }}"
139139
CIBW_BEFORE_BUILD: "pip install -U setuptools && python setup.py build_c_core"
140140
CIBW_ENVIRONMENT: "LDFLAGS=-L$HOME/local/lib"
141141
IGRAPH_CMAKE_EXTRA_ARGS: -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake_arch }} ${{ matrix.cmake_extra_args }} -DCMAKE_PREFIX_PATH=$HOME/local
142142

143-
- uses: actions/upload-artifact@v6
143+
- uses: actions/upload-artifact@v7
144144
with:
145145
name: wheels-macos-${{ matrix.wheel_arch }}
146146
path: ./wheelhouse/*.whl
@@ -155,33 +155,12 @@ jobs:
155155
submodules: true
156156
fetch-depth: 0
157157

158-
- uses: actions/setup-python@v6
159-
name: Install Python
160-
with:
161-
python-version: "3.12.1"
162-
163-
- name: Install OS dependencies
164-
run: sudo apt install ninja-build cmake flex bison
165-
166-
- uses: mymindstorm/setup-emsdk@v14
167-
with:
168-
version: "3.1.58"
169-
actions-cache-folder: "emsdk-cache"
170-
171-
- name: Build wheel
172-
run: |
173-
pip install pyodide-build==0.26.2
174-
python3 scripts/fix_pyodide_build.py
175-
pyodide build
176-
177-
- name: Setup upterm session
178-
uses: lhotari/action-upterm@v1
179-
if: ${{ failure() }}
180-
with:
181-
limit-access-to-actor: true
182-
wait-timeout-minutes: 5
158+
- name: Build wheels
159+
uses: pypa/cibuildwheel@v3.4.1
160+
env:
161+
CIBW_PLATFORM: pyodide
183162

184-
- uses: actions/upload-artifact@v6
163+
- uses: actions/upload-artifact@v7
185164
with:
186165
name: wheels-wasm
187166
path: ./dist/*.whl
@@ -238,7 +217,7 @@ jobs:
238217
shell: cmd
239218

240219
- name: Build wheels
241-
uses: pypa/cibuildwheel@v3.3.0
220+
uses: pypa/cibuildwheel@v3.4.1
242221
env:
243222
CIBW_BEFORE_BUILD: "pip install -U setuptools && python setup.py build_c_core"
244223
CIBW_BUILD: "*-${{ matrix.wheel_arch }}"
@@ -252,7 +231,7 @@ jobs:
252231
IGRAPH_EXTRA_LIBRARIES: libxml2,lzma,zlib,iconv,charset,bcrypt
253232
IGRAPH_EXTRA_DYNAMIC_LIBRARIES: wsock32,ws2_32
254233

255-
- uses: actions/upload-artifact@v6
234+
- uses: actions/upload-artifact@v7
256235
with:
257236
name: wheels-win-${{ matrix.wheel_arch }}
258237
path: ./wheelhouse/*.whl
@@ -294,7 +273,7 @@ jobs:
294273
pip install '.[test]'
295274
python -m pytest -v tests
296275
297-
- uses: actions/upload-artifact@v6
276+
- uses: actions/upload-artifact@v7
298277
with:
299278
name: sdist
300279
path: dist/*.tar.gz

0 commit comments

Comments
 (0)