Skip to content

Commit 36485ad

Browse files
committed
Add make command and run on ci
1 parent c4b9c9f commit 36485ad

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Build
2929
run: make build
3030

31+
- name: Build JS
32+
run: make build-js
33+
3134
lint:
3235
name: Lint
3336
runs-on: ubuntu-latest

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.PHONY: all
2-
all: build lint test
2+
all: build build-js lint test
33

44
.PHONY: clean
55
clean:
@@ -22,6 +22,10 @@ build:
2222
# Use --all-targets to ensure that all of the benchmarks compile.
2323
cargo build --all-targets --all-features
2424

25+
.PHONY: build-js
26+
build-js:
27+
npm --prefix crates/string-offsets/js run compile
28+
2529
.PHONY: test
2630
test:
2731
RUST_BACKTRACE=1 cargo test

crates/string-offsets/js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "string-offsets-dev",
2+
"name": "string-offsets",
33
"version": "0.1.0",
44
"author": "The blackbird team <[email protected]>",
55
"license": "MIT",

0 commit comments

Comments
 (0)