Skip to content

chore: Bump version to 2.2.1 #139

chore: Bump version to 2.2.1

chore: Bump version to 2.2.1 #139

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Install ${{ matrix.toolchain }} toolchain
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
- name: Run cargo check
run: cargo check ${{ matrix.features }} --workspace
no-std:
name: no_std Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Install nightly toolchain
run: |
rustup update nightly
rustup default nightly
- name: Install cargo no-std-check
run: cargo install cargo-no-std-check
# https://github.com/mystor/cargo-no-std-check/issues/2
# `--no-default-features` doesn't work with `--workspace` correctly.
- name: Run cargo no-std-check on libflate crate
run: cargo no-std-check --no-default-features
- name: Run cargo no-std-check on libflate_lz77 crate
run: cargo no-std-check --no-default-features --manifest-path libflate_lz77/Cargo.toml
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Install ${{ matrix.toolchain }} toolchain
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
- name: Run cargo test
run: cargo test ${{ matrix.features }} --workspace
lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
features: [--no-default-features, --all-features]
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Install ${{ matrix.toolchain }} toolchain
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
if: matrix.toolchain != 'beta'
run: cargo clippy ${{ matrix.features }} --workspace -- -D warnings