Files
nuchat/.gitea/workflows/backend.yaml
Fergus Molloy e2250c6676
Some checks failed
Backend Actions / build (push) Failing after 19s
add basic backend workflow
2025-07-21 23:55:46 +01:00

27 lines
716 B
YAML

name: Backend Actions
run-name: ${{ gitea.actor }} is running backend actions
on: [push]
jobs:
build:
runs-on: rust-latest
steps:
- uses: actions/checkout@v4
- name: Load Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo--${{ hashFiles('Cargo.lock') }}
- name: Build Binary
run: cargo build --release
- name: Run Tests
run: ./scripts/test.sh
- name: Upload Test Logs
uses: actions/upload-artifact@v4
with:
name: nuchat-${{ hashFiles('src/**') }}-${{ hashFiles('tests/**') }}.log
path: logs/*