-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
135 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
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: Test | ||
run: | | ||
cargo +nightly nextest run -v --all-features --workspace | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v3 | ||
|
||
sanitizer: | ||
strategy: | ||
matrix: | ||
target: | ||
- os: ubuntu-latest | ||
triple: x86_64-unknown-linux-gnu | ||
- os: macos-13 | ||
triple: x86_64-apple-darwin | ||
- os: macos-13-large | ||
triple: aarch64-apple-darwin | ||
sanitizer: [address, leak, thread] | ||
include: | ||
- target: | ||
- os: ubuntu-latest | ||
triple: x86_64-unknown-linux-gnu | ||
sanitizer: memory | ||
name: Sanitizers | ||
runs-on: ${{ matrix.target.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.triple }} --all-features | ||
env: | ||
RUSTFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}" | ||
RUSTDOCFLAGS: "-Z sanitizer=${{ matrix.sanitizer }}" |