Skip to content

Commit

Permalink
Split bindgen CI into a separate job
Browse files Browse the repository at this point in the history
This allows the usage of a different Rust toolchain when testing the
integration of clang-sys and bindgen (which is useful because the MSRV
of this crate and bindgen might diverge)
  • Loading branch information
KyleMayes committed Jan 3, 2024
1 parent 16f52cc commit 55ae576
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
- master

jobs:
ci:
name: CI
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -36,5 +36,21 @@ jobs:
run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture
- name: Cargo Test (Runtime)
run: cargo test --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture
test-bindgen:
name: Test (bindgen)
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# LLVM and Clang
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: 14
directory: ${{ runner.temp }}/llvm
# Rust
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
# Test
- name: Cargo Run (bindgen-test)
run: cargo run --manifest-path bindgen-test/Cargo.toml

0 comments on commit 55ae576

Please sign in to comment.