Skip to content

Commit 2e1afea

Browse files
committed
chore: add CI step to verify Rust bindings compile
1 parent cbc31c9 commit 2e1afea

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
just semver-lock-no-build
6060
git diff --exit-code snapshots/semver-lock.json
6161
62+
- name: Install Rust
63+
uses: dtolnay/rust-toolchain@stable
64+
65+
- name: Check Rust bindings
66+
run: just bindings-check
67+
6268
- name: Run Forge tests
6369
run: just test
6470
id: test

justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ snapshots-check-no-build: snapshots-no-build
298298
# Checks if the snapshots are up to date.
299299
snapshots-check: build snapshots-check-no-build
300300

301+
# Checks that the Rust bindings crate compiles.
302+
bindings-check:
303+
cd bindings/rust && cargo check
304+
301305
# Checks that committed Rust binding artifacts match forge-artifacts.
302306
bindings-artifacts-check-no-build:
303307
#!/bin/bash

0 commit comments

Comments
 (0)