Files
vtracer/.github/workflows/rust.yml
T
Chris Tsang 8af376cb7c 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.
2026-07-24 13:37:25 +01:00

83 lines
2.2 KiB
YAML

name: Rust
on:
pull_request:
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
push:
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
branches:
- master
- 0.*.x
- ci-*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true
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:
test:
runs-on: ubuntu-latest
steps:
- 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