Skip to content

Commit cde6e3d

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

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v6
25+
26+
- name: Setup Rust toolchain
27+
uses: dtolnay/rust-toolchain@stable
28+
29+
- name: Install C compiler
30+
run: sudo apt-get update && sudo apt-get install -y build-essential
31+
32+
- name: Run header validation script
33+
run: bash ffi-c-tests/validate-headers.sh

0 commit comments

Comments
 (0)