Skip to content

Update bindgen requirement from 0.66.0 to 0.68.1 #67

Update bindgen requirement from 0.66.0 to 0.68.1

Update bindgen requirement from 0.66.0 to 0.68.1 #67

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
test:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
- 1.64.0
os:
- ubuntu-latest
- windows-latest
- macos-latest
clang:
- 11.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v1
with:
submodules: recursive
# LLVM and Clang installation
# https://github.com/KyleMayes/clang-sys/blob/a0bcae1a9d7ab6ed8de010b0f5e2b2020c20d204/.github/workflows/ci.yml#L23-L35
# The clang and clang-sys crates' CI has example of installing LLVM and Clang
# along with how to update the environment variables (see Build & Test) so
# that bindgen can find libclang and depedencies
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
with:
path: ${{ runner.temp }}/llvm-${{ matrix.clang }}
key: ${{ matrix.os }}-llvm-${{ matrix.clang }}
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ matrix.clang }}
directory: ${{ runner.temp }}/llvm-${{ matrix.clang }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
# Rust
- name: Install ${{ matrix.rust }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
uses: actions-rs/cargo@v1
env:
LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang }}/lib
LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang }}/bin/llvm-config
with:
command: build
args: --all
- name: Test
uses: actions-rs/cargo@v1
env:
LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang }}/lib
LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang }}/bin/llvm-config
with:
command: test
args: --all
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
with:
submodules: recursive
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy, rustfmt
- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy