server/.forgejo/workflows/build.yaml

31 lines
613 B
YAML
Raw Normal View History

2025-02-06 18:47:55 +04:00
name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
2025-02-09 20:29:27 +03:00
runs-on: node-bookworm
2025-02-06 18:47:55 +04:00
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v4
- run: ls . && pwd && whoami
shell: bash
- uses: actions/cache@v4
with:
path: |
~/.cargo/
key: ${{ runner.os }}-cargo
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- run: cargo test --all-features