Skip to content

Test win ci

Test win ci #4

Workflow file for this run

name: Win
on: push
jobs:
coverage:
name: Test
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
run: rustup update nightly
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Dependency
run: cargo fetch
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Test
run: |
cargo +nightly nextest run -v --all-features --workspace
sanitizer:
strategy:
matrix:
sanitizer: [address, leak, thread]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
sanitizer: memory
- os: macos-13
target: x86_64-apple-darwin
- os: macos-13
target: aarch64-apple-darwin
name: Sanitizers
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
run: rustup update nightly
- name: Add rust-src
run: rustup +nightly component add rust-src
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Dependency
run: cargo fetch
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-sanitizer-${{ matrix.sanitizer }}-${{ hashFiles('**/Cargo.lock') }}
- name: Address Sanitizer
run: cargo +nightly nextest run -Z build-std --target=${{ matrix.target }} --all-features
env:
RUSTFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}"
RUSTDOCFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}"