Skip to content

Release cargo-diet v1.2.7 #1

Release cargo-diet v1.2.7

Release cargo-diet v1.2.7 #1

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
SIZE_LIMIT: 10KB
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make tests
- name: Check crate package size
run: cargo run -- diet --dry-run --package-size-limit ${{ env.SIZE_LIMIT }}
- name: Check crate package size (with install action)
uses: actions-rs/install@v0.1
with:
crate: cargo-diet
version: latest
- name: Check crate package size (with latest binary)
run: |
curl -LSfs https://github.com/raw/the-lean-crate/cargo-diet/master/ci/install.sh | \
sh -s -- --git the-lean-crate/cargo-diet --target x86_64-unknown-linux-musl --force --tag v1.2.5
cargo diet --dry-run --package-size-limit ${{ env.SIZE_LIMIT }}
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy