Skip to content

Commit 7abb052

Browse files
committed
ci: use cmake target for cbindgen
1 parent 066af23 commit 7abb052

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@ jobs:
264264

265265
ensure-header-updated:
266266
runs-on: ubuntu-latest
267-
defaults:
268-
run:
269-
working-directory: librustls
270267
steps:
271268
- uses: actions/checkout@v4
272269
with:
@@ -282,11 +279,10 @@ jobs:
282279
# otherwise.
283280
run: cargo install cbindgen --force --version 0.28.0
284281

285-
- run: touch src/lib.rs
286-
287-
- run: cbindgen --version
282+
- name: Configure CMake
283+
run: cmake -S librustls -B build
288284

289-
- run: cbindgen > src/rustls.h
285+
- run: cmake --build build --target cbindgen
290286

291287
- run: git diff --exit-code
292288

0 commit comments

Comments
 (0)