Add crash handler #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |