From 3500a615c881bf927ef0b6e869265500cf885cb3 Mon Sep 17 00:00:00 2001 From: Kyle Mayes Date: Wed, 3 Jan 2024 05:55:43 -0500 Subject: [PATCH] Split bindgen CI into a separate job 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) --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59c2a8e02..b37737c88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ on: - master jobs: - ci: - name: CI + test: + name: Test runs-on: ${{ matrix.os }} strategy: matrix: @@ -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