1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-10-18 13:58:55 +00:00
bddisasm/.github/workflows/rust.yml
Anichitei Ionel-Cristinel 4e37a3a312
Update rust.yml
2024-05-08 12:23:01 +03:00

41 lines
1.0 KiB
YAML

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
permissions: read-all
steps:
- uses: actions/checkout@v4
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
if: matrix.os == 'windows-latest'
- name: Debug Build
run: cargo build --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
- name: Release build
run: cargo build --release --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
- name: Run tests
run: cargo test --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
- name: Run clippy
run: cargo clippy --manifest-path bindings/rsbddisasm/Cargo.toml
- name: Run format checks
run: |
cd bindings/rsbddisasm
cargo fmt -- --check
cd ..