Skip to content

Update UPLOAD_SMALL_MAX_SIZE and remove local check #14

Update UPLOAD_SMALL_MAX_SIZE and remove local check

Update UPLOAD_SMALL_MAX_SIZE and remove local check #14

Workflow file for this run

name: CI
on:
pull_request:
push:
permissions:
contents: read
env:
RUST_BACKTRACE: full
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: cargo fmt
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: cargo clippy
run: cargo clippy --workspace --all-targets -- -Dwarnings
- name: cargo doc
run: cargo doc --workspace ${{ matrix.feature_flag }}
env:
RUSTDOCFLAGS: -Dwarnings
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, beta, '1.64'] # NB. Sync with Cargo.toml.
include:
- os: ubuntu-latest
feature_flag: --features=beta
name: Test ${{ matrix.os }} ${{ matrix.rust }} ${{ matrix.feature_flag }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Build
run: cargo build ${{ matrix.feature_flag }}
- name: Test
run: cargo test ${{ matrix.feature_flag }}