mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-09-26 22:11:28 -07:00
Update CI for the 1.0 workspace layout
- rust.yml: modernize (checkout@v4), build/test the whole workspace, add a wasm32 core build check and a Node package build+test job. Checks out visioncortex next to the repo so the local path dependency resolves. - python.yml: build crates/vtracer-py (was the deleted cmdapp/); note that manylinux builds need visioncortex 0.9.0 published to crates.io. - release.yml: note the same visioncortex prerequisite for the CLI binary.
This commit is contained in:
@@ -12,7 +12,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- 0.*.x
|
||||
- pr/**/ci
|
||||
- ci-*
|
||||
|
||||
concurrency:
|
||||
@@ -22,14 +21,62 @@ concurrency:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
# NOTE: the workspace depends on visioncortex 0.9.0 via a local path
|
||||
# (`../visioncortex`). Until 0.9.0 is published to crates.io, CI checks out the
|
||||
# visioncortex repo next to this one so the path resolves. This requires the
|
||||
# 0.9.x changes to be present on visioncortex's default branch.
|
||||
jobs:
|
||||
build:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: vtracer
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: visioncortex/visioncortex
|
||||
path: visioncortex
|
||||
- name: Build
|
||||
working-directory: vtracer
|
||||
run: cargo build --workspace --verbose
|
||||
- name: Test
|
||||
working-directory: vtracer
|
||||
run: cargo test --workspace --verbose
|
||||
|
||||
wasm:
|
||||
name: wasm-safety (core)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: vtracer
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: visioncortex/visioncortex
|
||||
path: visioncortex
|
||||
- run: rustup target add wasm32-unknown-unknown
|
||||
- name: Build core for wasm32
|
||||
working-directory: vtracer
|
||||
run: cargo build --target wasm32-unknown-unknown -p vtracer
|
||||
|
||||
nodejs:
|
||||
name: Node package
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: vtracer
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: visioncortex/visioncortex
|
||||
path: visioncortex
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
- name: Build & test
|
||||
working-directory: vtracer/nodejs
|
||||
run: |
|
||||
wasm-pack build --target nodejs --out-dir pkg
|
||||
node test.js
|
||||
|
||||
Reference in New Issue
Block a user