Skip to content

Fix UB when reading / copying thread's contexts using `read_unaligned… #23

Fix UB when reading / copying thread's contexts using `read_unaligned…

Fix UB when reading / copying thread's contexts using `read_unaligned… #23

Workflow file for this run

name: Builds
on: [push, pull_request]
jobs:
fmt:
runs-on: ubuntu-latest
name: fmt
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up rust
run: rustup default nightly
- name: Install rustfmt
run: rustup component add rustfmt
- name: cargo fmt
run: cargo +nightly fmt --check
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up rust
run: rustup default stable
- name: cargo clippy
env:
RUSTFLAGS: "-Dwarnings"
run: cargo clippy --example parser
doc:
name: doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up rust
run: rustup default stable
- name: cargo doc
env:
RUSTDOCFLAGS: "-Dwarnings"
run: cargo doc
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: build & test / ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up rust
run: rustup default stable
- name: cargo test
run: cargo test
- name: cargo test release
run: cargo test --release
- name: cargo build
run: cargo build --release --example parser
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: parser-${{ matrix.os }}
path: |
target/release/examples/parser.exe
target/release/examples/parser.pdb
target/release/examples/parser