Skip to content

refactor: clarify unwrap() in Iter::new #22

refactor: clarify unwrap() in Iter::new

refactor: clarify unwrap() in Iter::new #22

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
# TODO: check also i686-unknown-linux-musl
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show active-toolchain -v
- run: cargo build --all-targets --all-features
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show active-toolchain -v
- run: rustup component add rustfmt
- run: cargo fmt --version
- run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show active-toolchain -v
- run: rustup component add clippy
- run: cargo clippy --version
- run: cargo clippy --all-targets --all-features
- run: RUSTFLAGS="$RUSTFLAGS --cfg loom" cargo clippy --all-targets --all-features
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show active-toolchain -v
- run: cargo test
loom:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup show active-toolchain -v
- run: ./tests/loom.sh
miri:
needs: build
runs-on: ubuntu-latest
env:
# stacked borrows: https://github.com/wvwwvwwv/scalable-concurrent-containers/issues/88
# memory leaks: EBR collector isn't triggered in most tests
MIRIFLAGS: -Zmiri-disable-stacked-borrows -Zmiri-ignore-leaks
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install nightly --component miri
- run: rustup override set nightly
- run: rustup show active-toolchain -v
- run: cargo miri setup
- run: cargo miri test