Skip to content

Commit ea0a4bb

Browse files
committed
WIP CI
1 parent ad1d23d commit ea0a4bb

File tree

3 files changed

+48
-9
lines changed

3 files changed

+48
-9
lines changed

.github/actions/install-deps/action.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ runs:
198198

199199
- name: manylinux deps
200200
shell: bash
201-
run: dnf install wget -y
201+
run: |
202+
if [ -x "$(command -v dnf)" ]; then
203+
dnf install wget -y
204+
fi
202205
if: ${{ runner.os == 'Linux' && inputs.cpp == 'true' && inputs.javascript == 'false' }}
203206

204207
# TODO do this earlier?

.github/workflows/build.yaml

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,6 @@ jobs:
201201
PSP_ARCH: ${{ matrix.arch }}
202202
CI: 1
203203

204-
- name: Python Build Pyodide
205-
run: pnpm install && pnpm run build
206-
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' }}
207-
env:
208-
PSP_PYODIDE: 1
209-
PACKAGE: "perspective-python"
210-
CI: 1
211-
212204
- name: Python Build (Windows)
213205
run: |
214206
New-Item -ItemType Directory -Path $env:CARGO_TARGET_DIR -Force
@@ -236,6 +228,49 @@ jobs:
236228
name: perspective-python-dist-${{ matrix.arch}}-${{ matrix.os }}-${{ matrix.python-version }}
237229
path: rust/target/wheels/*.whl
238230

231+
build_emscripten_wheel:
232+
runs-on: ${{ matrix.os }}
233+
strategy:
234+
fail-fast: false
235+
matrix:
236+
os:
237+
- ubuntu-22.04
238+
arch:
239+
- x86_64
240+
python-version:
241+
- 3.9
242+
node-version: [20.x]
243+
steps:
244+
- name: Checkout
245+
uses: actions/checkout@v4
246+
247+
- name: Config
248+
id: config-step
249+
uses: ./.github/actions/config
250+
251+
- name: Initialize Build
252+
id: init-step
253+
uses: ./.github/actions/install-deps
254+
with:
255+
javascript: "false"
256+
arch: ${{ matrix.arch }}
257+
manylinux: ${{ matrix.container && 'true' || 'false' }}
258+
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}
259+
260+
- name: Python Build Pyodide
261+
run: pnpm install && pnpm run build
262+
if: ${{ runner.os == 'Linux' && matrix.arch == 'x86_64' }}
263+
env:
264+
PSP_PYODIDE: 1
265+
PACKAGE: "perspective-python"
266+
CI: 1
267+
268+
- uses: actions/upload-artifact@v4
269+
# if: ${{ runner.os != 'Windows' }}
270+
with:
271+
name: perspective-python-dist-wasm32-emscripten-${{ matrix.python-version }}
272+
path: rust/target/wheels/*.whl
273+
239274
# ,-,---. . . . ,--,--' .
240275
# '|___/ . . . | ,-| ,-. ,-. ,-| `- | ,-. ,-. |-
241276
# ,| \ | | | | | | ,-| | | | | , | |-' `-. |

rust/perspective-python/perspective/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
PerspectiveError,
2727
Table,
2828
View,
29+
PySyncProxySession as ProxySession,
2930
)
3031

3132
from .widget import PerspectiveWidget

0 commit comments

Comments
 (0)