Skip to content

Add interop functionality #146

Add interop functionality

Add interop functionality #146

name: Build, test and format
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
RUST_VERSION: "1.65"
jobs:
build-test-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Format Rust Project
run: cargo fmt --manifest-path=./rust-bindings/Cargo.toml --check
- name: Clippy Rust Project
run: cargo clippy --manifest-path=./rust-bindings/Cargo.toml --tests --release -- --no-deps
- name: Build Rust Project
run: cargo build --manifest-path=./rust-bindings/Cargo.toml --release
- name: Test Rust Project
run: cargo test --manifest-path=./rust-bindings/Cargo.toml --release
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --filter FullyQualifiedName!~IntegrationTests --no-build --verbosity normal
- name: Check formatting
run: dotnet format --verify-no-changes