Skip to content

Commit a362c9a

Browse files
committed
add ffi-c-tests github workflow with the validation headers job
1 parent 508721e commit a362c9a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/ffi-c-tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: FFI C Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'v**-dev'
8+
pull_request:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
header-validation:
16+
name: Header validation
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v6
21+
22+
- name: Setup Rust toolchain
23+
uses: dtolnay/rust-toolchain@stable
24+
25+
- name: Install C compiler
26+
run: sudo apt-get update && sudo apt-get install -y build-essential
27+
28+
- name: Run header validation script
29+
run: bash ffi-c-tests/validate-headers.sh

0 commit comments

Comments
 (0)