Skip to content

Commit

Permalink
chore: rename task with rust
Browse files Browse the repository at this point in the history
this is more clear, plus we're actually using the N-API interface and not WASM
  • Loading branch information
dav1do committed Nov 19, 2024
1 parent dbd2f09 commit 7f56ff4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
settings:
- host: macos-13
target: x86_64-apple-darwin
build: pnpm build:wasm --target x86_64-apple-darwin && pnpm build:js
build: pnpm build:rust --target x86_64-apple-darwin && pnpm build:js
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
# using vm instead of docker, but leaving in case we need this for other targets
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: pnpm build:wasm --target x86_64-unknown-linux-gnu && pnpm build:js
build: pnpm build:rust --target x86_64-unknown-linux-gnu && pnpm build:js
test: cd tests/c1-integration && pnpm run test
- host: macos-latest
target: aarch64-apple-darwin
build: pnpm build:wasm --target aarch64-apple-darwin && pnpm build:js
build: pnpm build:rust --target aarch64-apple-darwin && pnpm build:js
name: stable - ${{ matrix.settings.target }} - node@20
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pnpm test:ci # run only unit tests

## CI

In order to specify targets for WASM builds on CI, the build script is split into `pnpm build:wasm` which allows passing `--target TARGET_TRIPLE` and `pnpm build:js`.
In order to specify targets for WASM builds on CI, the build script is split into `pnpm build:rust` which allows passing `--target TARGET_TRIPLE` and `pnpm build:js`.

## License

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"packageManager": "[email protected]",
"scripts": {
"build": "pnpm --filter \"@ceramic-sdk/*\" build && turbo run build:js",
"build:wasm": "pnpm --filter \"@ceramic-sdk/flight-sql-client\" build",
"build:rust": "pnpm --filter \"@ceramic-sdk/flight-sql-client\" build",
"build:js": "pnpm --filter \"@ceramic-sdk/*\" --filter !@ceramic-sdk/flight-sql-client build && turbo run build:js",
"docs": "typedoc",
"lint": "biome check --write apps/* packages/* tests/*",
Expand Down

0 comments on commit 7f56ff4

Please sign in to comment.