server/.forgejo/workflows/build.yaml

36 lines
810 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
2025-02-09 20:37:34 +03:00
- uses: actions/cache/restore@v4
id: cargo-cache-restore
2025-02-06 18:47:55 +04:00
with:
path: |
~/.cargo/
key: ${{ runner.os }}-cargo
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
toolchain: nightly
2025-02-09 20:37:34 +03:00
- uses: actions/cache/save@v4
with:
path: |
~/.cargo/
key: ${{ steps.cargo-cache-restore.outputs.cache-primary-key }}
2025-02-06 18:47:55 +04:00
- run: cargo test --all-features