Skip to content

chore: add CHANGELOG.md to document project updates and version his… #2

chore: add CHANGELOG.md to document project updates and version his…

chore: add CHANGELOG.md to document project updates and version his… #2

Workflow file for this run

name: Test Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test-linux:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
${{ runner.os }}-cargo-
- name: Build
run: |
if [ "${{ matrix.rust }}" = "nightly" ]; then
cargo build --verbose --features unstable
else
cargo build --verbose --no-default-features
fi
- name: Run tests
run: |
if [ "${{ matrix.rust }}" = "nightly" ]; then
cargo test --verbose --features unstable
else
cargo test --verbose --no-default-features
fi
- name: Run doc tests
run: |
if [ "${{ matrix.rust }}" = "nightly" ]; then
cargo test --doc --verbose --features unstable
else
cargo test --doc --verbose --no-default-features
fi
- name: Check documentation
run: |
if [ "${{ matrix.rust }}" = "nightly" ]; then
cargo doc --no-deps --features unstable
else
cargo doc --no-deps --no-default-features
fi
env:
RUSTDOCFLAGS: -D warnings