automaton

An automaton library written in Rust
Log | Files | Refs

commit 367ed96c361ef0f60cf37b6fa4df071e1543cb2d
parent 483c3eedacb533aaaa201b0b71d4edc47efcb584
Author: Ethan Long <ethandavidlong@gmail.com>
Date:   Mon, 26 Feb 2024 19:11:10 +1100

Added a pipeline?

We'll have to see if this works

Diffstat:
A.gitlab-ci.yml | 23+++++++++++++++++++++++
Mweb/build.js | 4+++-
2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +stages: + - build + - test + +build-rust: + image: "rust:latest" + stage: build + script: + - cargo build --release + +build-js: + image: "oven/bun:latest" + variables: + SKIP_RUST_BUILD: "true" + stage: build + script: + - cd web && bun run build + +test-rust: + image: "rust:latest" + stage: test + script: + - cargo test --nocapture diff --git a/web/build.js b/web/build.js @@ -1,6 +1,8 @@ import { $ } from "bun"; -await $`wasm-pack build --target web --out-dir web/pkg`; +if (!process.env.SKIP_RUST_BUILD) { + await $`wasm-pack build --target web --out-dir web/pkg`; +} const res = await Bun.build({ entrypoints: ['./src/main.ts'],