Skip to content

Update dependencies, simplify bindings generation #54

Update dependencies, simplify bindings generation

Update dependencies, simplify bindings generation #54

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
rust: stable
other: x86_64-pc-windows-msvc
platform: x64
- os: windows-latest
rust: nightly
other: i686-pc-windows-msvc
platform: x86
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
- name: Setup Visual Studio
run: |
& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vs_installer.exe" modify `
--quiet `
--wait `
--installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" `
--add `
Microsoft.NetCore.Component.Runtime.8.0 `
Microsoft.NetCore.Component.SDK `
Microsoft.VisualStudio.Component.VC.Tools.ARM64 `
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
Microsoft.VisualStudio.Component.Windows11SDK.22000
- name: Build metadata
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
dotnet build .metadata
- name: Update toolchain
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Add toolchain target
run: rustup target add ${{ matrix.other }}
- name: Build (${{ matrix.os }})
run: cargo test --all --target ${{ matrix.other }}
cargo_fmt:
name: Check cargo formatting
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run cargo fmt
run: cargo fmt --all -- --check
cargo_clippy:
name: Check cargo clippy
runs-on: windows-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run cargo clippy
run: cargo clippy --all -- -D warnings
cargo_doc:
name: Check cargo docs
runs-on: windows-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run cargo doc
run: cargo doc --no-deps --workspace