chore: add CI
All checks were successful
CI / tests (push) Successful in 5m42s

This commit is contained in:
Lucien Cartier-Tilet 2025-06-03 22:47:07 +02:00
parent bb4c4b6375
commit f9fe233b6c
Signed by: phundrak
SSH Key Fingerprint: SHA256:CE0HPsbW3L2YiJETx1zYZ2muMptaAqTN2g3498KrMkc

22
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,22 @@
name: CI
on:
pull_request:
push:
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: ${{gitea.ref != 'ref/heads/master' }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31.4.0
with:
nix_path: nixpkgs=channl:nixos-unstable
- name: Clippy
run: nix develop --command -- cargo clippy --all
- name: Build
run: nix build .