Skip to content

Implement OsStr::slice_encoded_bytes() proof of concept #55

Implement OsStr::slice_encoded_bytes() proof of concept

Implement OsStr::slice_encoded_bytes() proof of concept #55

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: rustup toolchain add 1.31 1.45 stable nightly
- run: cargo +1.31 test --lib # MSRV (examples don't compile)
- run: cargo +1.45 test # First version where all examples compile
- run: cargo +stable test
- run: cargo +nightly test
test_wasm:
name: Test (WASM)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain add 1.31 stable nightly
- run: rustup target add wasm32-unknown-unknown --toolchain 1.31
- run: rustup target add wasm32-unknown-unknown --toolchain stable
- run: rustup target add wasm32-unknown-unknown --toolchain nightly
- run: ./test_wasm.js 1.31
- run: ./test_wasm.js stable
- run: ./test_wasm.js nightly
fuzz:
name: Fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup toolchain add nightly
- run: cargo install cargo-fuzz
# Two minutes is a very short time to fuzz, but we have a very small state space.
# I sometimes fuzz locally for an hour or so.
- run: cargo +nightly fuzz run fuzz_target_1 -- -max_len=100000 -timeout=1 -max_total_time=120
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup target add x86_64-pc-windows-msvc wasm32-wasi wasm32-unknown-unknown
- name: rustfmt
run: cargo fmt -- --check
- name: clippy (Linux)
run: cargo clippy -- -D warnings
- name: clippy (Windows)
run: cargo clippy --target x86_64-pc-windows-msvc -- -D warnings
- name: clippy (WASI)
run: cargo clippy --target wasm32-wasi -- -D warnings
- name: clippy (WASM)
run: cargo clippy --target wasm32-unknown-unknown -- -D warnings