Skip to content

Testing release

Testing release #388

Workflow file for this run

name: Pre-merge tests
run-name: Testing ${{github.ref_name}}
# no permission for the token, this runs on pull requests
permissions: {}
on:
push:
tags-ignore: '**'
branches: '**'
schedule:
# run twice a week to keep mostly up-to-date with crate updates, nightly
- cron: '0 0 * * 0,3'
jobs:
unit-and-integration:
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu]
rust: [stable, "1.64", nightly]
include:
- miri:
- os: ubuntu
rust: nightly
miri: miri
name: Test battery on ${{ matrix.os }} for Rust ${{ matrix.rust }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.rustup/
key: rustup-${{ matrix.os }}-${{ matrix.rust }}
- uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: cargo-cache
- uses: actions/cache@v3
with:
path: ./target
key: target-dir-${{ matrix.os }}-${{ matrix.rust }}
- name: Setup Rust
run: |
rustup default ${{ matrix.rust }}
rustup component add rustfmt rust-src ${{ matrix.miri }}
- uses: actions/checkout@v3
- name: Run tests
run: |
cargo fmt --check
cargo check --all-features --all-targets
cargo ${{ matrix.miri }} test --all-targets --all-features
mass-events:
strategy:
fail-fast: false
matrix:
run: [orig, single, rayon]
include:
- std: ""
- run: orig
std: "std"
- run: single
std: "std"
- run: rayon
std: "std"
name: mass-messages on runner ${{ matrix.run }}
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.rustup/
key: rustup-ubuntu-stable
- uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: cargo-cache
- uses: actions/cache@v3
with:
path: ./target
key: target-dir-ubuntu-stable
- name: Set up Rust
run: |
rustup default stable
- uses: actions/checkout@v3
- name: Run mass-messages
env:
features: run_${{ matrix.run }},io_nop,${{ matrix.std }}
run: |
cargo run --release --bin mass-messages --features "${{ env.features }}"