distributed_physics_test/.forgejo/workflows/build.yaml
Michael Bradley cc965e7c0a
Some checks failed
CI / Formatting (push) Successful in 33s
CI / Clippy (push) Failing after 1m58s
CI / Build (push) Failing after 8m18s
Add CI jobs
2025-03-12 22:24:36 -04:00

42 lines
964 B
YAML

---
on: [push]
name: CI
jobs:
formatting:
name: Formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Check Rust formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Run Clippy
run: cargo clippy -- -D warnings
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Rust
uses: https://github.com/dtolnay/rust-toolchain@nightly
- name: Build project
run: cargo build