Skip to content

Add crash handler

Add crash handler #8

Workflow file for this run

name: Pull Request Validation
on:
pull_request:
branches: [main, master]
jobs:
build-test:
name: Build and Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-obs-build
run: |
if (-Not (Get-Command cargo-obs-build -ErrorAction SilentlyContinue)) {
cargo install cargo-obs-build
}
shell: pwsh
# Run cargo obs-build for debug build
- name: Set up OBS dependencies for debug
run: cargo obs-build --out-dir target/debug
shell: pwsh
# Run tests in debug mode
- name: Test debug build
run: cargo test
shell: pwsh
# Run cargo check to ensure code will compile
- name: Check code compilation
run: cargo check --all
shell: pwsh