Skip to content

Commit

Permalink
ci(ga validate): add rs-compiler build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwlad90 committed Oct 11, 2024
1 parent bd517b9 commit 1bcdc5f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
env:
RUST_MIN_STACK: 16777216

build:
build-wasm:
runs-on: ubuntu-latest
needs: [test, lint, format]

Expand All @@ -80,3 +80,20 @@ jobs:

- name: Check build artifacts
run: pnpm run --filter @stylexswc/swc-plugin check:artifacts

build-rs:
runs-on: ubuntu-latest
needs: [test, lint, format]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup environment
uses: ./.github/actions/setup

- name: Build project
run: pnpm run --filter @stylexswc/rs-compiler build

- name: Check build artifacts
run: pnpm run --filter @stylexswc/rs-compiler check:artifacts
1 change: 1 addition & 0 deletions crates/stylex-rs-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"bench": "node --import @swc-node/register/esm-register benchmark/bench.ts",
"build": "napi build --platform --release dist",
"build:debug": "napi build --platform",
"check:artifacts": "[ -f ./dist/rs-compiler.*.node ] || { echo 'Artifacts does not exist'; exit 1; }",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:rs": "cargo fmt",
Expand Down

0 comments on commit 1bcdc5f

Please sign in to comment.