Update actions and bump MSRV #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
name: CI | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
clang: [["14.0", "clang_14_0"]] | |
rust: ["1.51.0"] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# LLVM and Clang | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: ${{ matrix.clang[0] }} | |
directory: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }} | |
# Rust | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
# Test | |
- name: Cargo Test (Dynamic) | |
run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture | |
- name: Cargo Test (Runtime) | |
run: cargo test --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture | |
- name: Cargo Run (bindgen-test) | |
run: cargo run --manifest-path bindgen-test/Cargo.toml |