Skip to content

Commit f7eca39

Browse files
committed
Add the exposed API check to the existing Lint CI
1 parent ddf7c06 commit f7eca39

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ jobs:
6363
- name: "Run lint"
6464
run: cargo +${{ steps.setup.outputs.nightly-version }} rbmt lint
6565

66+
API:
67+
name: API check
68+
runs-on: ubuntu-latest
69+
strategy:
70+
fail-fast: false
71+
steps:
72+
- uses: actions/checkout@v6
73+
- uses: rust-bitcoin/rust-bitcoin-maintainer-tools/.github/actions/setup-rbmt@master
74+
id: setup
75+
- name: "Run API check"
76+
run: cargo +${{ steps.setup.outputs.nightly-version }} rbmt api
77+
6678
Docs:
6779
name: Docs - stable toolchain
6880
runs-on: ubuntu-latest

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ docsrs *flags:
4242
@update-lock-files: _install-rbmt
4343
rustup run {{NIGHTLY_VERSION}} cargo rbmt lock
4444

45+
# Update the exposed API files in api/.
46+
[group('tools')]
47+
update-api-files: _install-rbmt
48+
cargo +{{NIGHTLY_VERSION}} rbmt api
49+
4550
# Run CI tasks with rbmt.
4651
[group('ci')]
4752
@ci task toolchain="stable" lock="recent": _install-rbmt

0 commit comments

Comments
 (0)