Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jan 12, 2026

follow up for #829

  • fixes the node ffi build action
  • enables rust caching across our build workflows
  • fixes some licensing headers

@lukasIO lukasIO marked this pull request as ready for review January 12, 2026 16:45
- name: Build TS parts
working-directory: livekit-ffi-node-bindings
run: pnpm build:ts
run: |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this run before the commit portion?

Copy link
Contributor Author

@lukasIO lukasIO Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was debating whether or not to move the generate_proto step to before the commit, but felt it was a bit unexpected that only the release workflow would commit the generated proto files.
This currently errors out if the committed protos aren't up to date on main.

I can see three approaches that have their own tradeoffs:

  • keep it as is and error out if not up to date
  • run on release and commit any changes without double checking that the output is sane
  • run ./generate_proto.sh on every PR instead and commit (this is what python is doing)

thinking about it again now, I prefer the third option of running it on every PR/build step, does that sound good to you, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with the approach that python also does now and commit the proto stubs on every PR

},
"scripts": {
"build:ts": "tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\" && cp -r src/napi dist/ && cp -r src/napi/* dist/",
"build": "./generate_proto.sh && pnpm build:ts && napi build --platform --release --dts native.d.ts --js native.cjs --pipe \"prettier -w\" src/napi",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this step anymore? when doing local dev?

Copy link
Contributor Author

@lukasIO lukasIO Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this part in the previous PR, but running it like this errors out on windows builds, so I kept it as a separate/manual step in the CI as it was before

@lukasIO lukasIO requested a review from davidzhao January 13, 2026 09:50
@lukasIO lukasIO requested a review from cloudwebrtc January 15, 2026 08:37
@lukasIO lukasIO merged commit 1b21dc4 into main Jan 15, 2026
10 of 11 checks passed
@lukasIO lukasIO deleted the lukas/node-binding-follow branch January 15, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants