server/.forgejo/workflows/build.yaml
nm17 da86396f67
All checks were successful
Cargo Build & Test / Rust project - latest (pull_request) Successful in 36s
Cargo Build & Test / Rust project - latest (push) Successful in 36s
ci: fix cache hopefully
2025-02-09 20:37:34 +03:00

36 lines
No EOL
810 B
YAML

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: node-bookworm
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v4
- run: ls . && pwd && whoami
shell: bash
- uses: actions/cache/restore@v4
id: cargo-cache-restore
with:
path: |
~/.cargo/
key: ${{ runner.os }}-cargo
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- uses: actions/cache/save@v4
with:
path: |
~/.cargo/
key: ${{ steps.cargo-cache-restore.outputs.cache-primary-key }}
- run: cargo test --all-features