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
|
2021-10-20 07:03:16 +00:00
|
|
|
run: cargo build --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
|
2021-10-19 15:06:35 +00:00
|
|
|
- name: Release build
|
2021-10-20 07:03:16 +00:00
|
|
|
run: cargo build --release --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
|
2021-10-19 15:06:35 +00:00
|
|
|
- name: Run tests
|
2021-10-20 07:03:16 +00:00
|
|
|
run: cargo test --verbose --manifest-path bindings/rsbddisasm/Cargo.toml
|
2021-10-19 15:06:35 +00:00
|
|
|
- name: Run clippy
|
2021-10-20 07:03:16 +00:00
|
|
|
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: |
|
2021-10-20 07:03:16 +00:00
|
|
|
cd bindings/rsbddisasm
|
2021-10-19 15:15:51 +00:00
|
|
|
cargo fmt -- --check
|
|
|
|
cd ..
|
|
|
|
|