2023-11-25 17:26:53 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: Rust Checks
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
checks:
|
2024-01-05 22:19:29 +00:00
|
|
|
runs-on: main
|
2023-11-25 17:26:53 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use cache
|
2024-01-05 22:15:26 +00:00
|
|
|
run: mkdir -p /cache/${{ gitea.repository }} && ln -s /cache/${{ gitea.repository }} target
|
2023-11-25 17:26:53 +00:00
|
|
|
- name: Cargo fmt
|
2024-01-05 22:15:26 +00:00
|
|
|
run: cargo fmt --check
|
2023-11-25 17:26:53 +00:00
|
|
|
- name: Cargo build
|
2024-01-05 22:15:26 +00:00
|
|
|
run: cargo build
|
2023-11-25 17:26:53 +00:00
|
|
|
- name: Cargo test
|
2024-01-05 22:15:26 +00:00
|
|
|
run: cargo test
|
2023-11-25 17:26:53 +00:00
|
|
|
- name: Cargo clippy
|
2024-01-05 22:15:26 +00:00
|
|
|
run: cargo clippy -- -D warnings
|