[tests] Run search_char_idx_02 and search_line_break_idx_04 only in debug mode #178
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
name: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
# Every-other month, to make sure new Rust | |
# releases don't break things. | |
- cron: '15 12 5 1,3,5,7,9,11 *' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-and-test-stable: | |
name: Build and test, Rust-stable | |
runs-on: ubuntu-latest | |
steps: | |
# Get a checkout and rust toolchain. | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
# Build and test | |
- run: cargo +stable build | |
- run: cargo +stable test | |
- run: cargo +stable test --no-default-features line | |
- run: cargo +stable test --no-default-features --features=cr_lines line | |
- run: cargo +stable bench --no-run | |
build-and-test-beta: | |
name: Build and test, Rust-beta | |
runs-on: ubuntu-latest | |
steps: | |
# Get a checkout and rust toolchain. | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: beta | |
override: true | |
# Build and test | |
- run: cargo +beta build | |
- run: cargo +beta test | |
- run: cargo +beta bench --no-run | |
run-miri: | |
name: Run Miri | |
runs-on: ubuntu-latest | |
steps: | |
# Get a checkout and rust toolchain. | |
- uses: actions/checkout@v2 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: nightly | |
components: miri | |
# Build and test | |
# --no-default-features to get rid of the simd feature | |
- run: cargo miri test --no-default-features | |
env: | |
MIRIFLAGS: "-Zmiri-strict-provenance" | |