[docker build fix] building multiple tags #456
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: push | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_TOOLCHAIN: 1.82.0 | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: moonrepo/setup-rust@v1 | |
with: | |
cache: false | |
channel: ${{ env.RUST_TOOLCHAIN }} | |
# build speedups | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check project and dependencies | |
run: cargo check | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: moonrepo/setup-rust@v1 | |
with: | |
cache: false | |
components: rustfmt | |
channel: ${{ env.RUST_TOOLCHAIN }} | |
# build speedups | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check formatting | |
run: cargo fmt -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: moonrepo/setup-rust@v1 | |
with: | |
cache: false | |
components: clippy | |
channel: ${{ env.RUST_TOOLCHAIN }} | |
# build speedups | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check code with clippy | |
run: cargo clippy -- -D warnings --no-deps |