1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-24 08:28:07 +00:00
bddisasm/.github/workflows/rust.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

2021-10-19 15:06:35 +00:00
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 }}
2022-02-17 09:37:15 +00:00
permissions: read-all
2021-10-19 15:06:35 +00:00
steps:
2024-05-08 09:23:01 +00:00
- uses: actions/checkout@v4
2021-10-19 15:20:35 +00:00
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
if: matrix.os == 'windows-latest'
2021-10-19 15:06:35 +00:00
- name: Debug Build
run: cargo build --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
2021-10-19 15:06:35 +00:00
- name: Release build
run: cargo build --release --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
2021-10-19 15:06:35 +00:00
- name: Run tests
run: cargo test --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
2021-10-19 15:06:35 +00:00
- name: Run clippy
run: cargo clippy --manifest-path bindings/rsbddisasm/Cargo.toml
2021-10-19 15:06:35 +00:00
- name: Run format checks
2021-10-19 15:15:51 +00:00
run: |
cd bindings/rsbddisasm
2021-10-19 15:15:51 +00:00
cargo fmt -- --check
cd ..