Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Bump actions/checkout from 3 to 4 #12

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #12

Workflow file for this run

name: rust
on:
push:
branches:
- main
paths:
- ".github/workflows/rust.yml"
- "**/*.rs"
pull_request:
branches:
- main
paths:
- ".github/workflows/rust.yml"
- "**/*.rs"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup show
- run: rustup component add clippy
- run: rustup component add rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy --all-targets -- -D warnings
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/head/main'
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup show
- uses: Swatinem/rust-cache@v2
- run: cargo build