Files
war-in-tunnels/.gitea/workflows/rust.yml
T
GarandPLG a94e36f646
Rust checks / check (push) Successful in 11m24s
Fix CI Nix installation and adopt MIT license
- Run CI jobs in `node:22-bookworm` container, install sudo and disable
  KVM for the Nix installer.
- Replace CC0 with the MIT license and add `license = "MIT"` to
  Cargo.toml.
- Update README and documentation (CODE_MAP, PROGRESS, TESTING) to
  reflect the new license and CI changes.
2026-10-19 13:00:56 +02:00

32 lines
1.0 KiB
YAML

name: Rust checks
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
container: node:22-bookworm
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Install runner prerequisites
run: |
apt-get update
apt-get install -y --no-install-recommends sudo
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v31
with:
enable_kvm: false
- name: Formatting
run: nix develop --no-update-lock-file -c cargo fmt --all -- --check
- name: Compilation
run: nix develop --no-update-lock-file -c cargo check --all-targets --locked
- name: Tests
run: nix develop --no-update-lock-file -c cargo test --all-targets --locked
- name: Release tests
run: nix develop --no-update-lock-file -c cargo test --all-targets --release --locked
- name: Clippy
run: nix develop --no-update-lock-file -c cargo clippy --all-targets --locked