skara-brae-server/.gitea/workflows/build.yml
Jan-Peter von Hunnius 6d5491e176
Some checks failed
build / build-test (push) Failing after 1m42s
CI: mkdir -p before cloning sb-common (git clone creates no parent dirs)
2026-09-01 11:00:31 +02:00

22 lines
732 B
YAML

name: build
on: [push, workflow_dispatch]
jobs:
build-test:
runs-on: docker
container: rust:1-bookworm
timeout-minutes: 25
steps:
- name: Checkout
run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git .
# sb-common is a path dependency pinned to this absolute path
# (see crates/*/Cargo.toml); clone it there before building.
- name: Checkout sb-common
run: mkdir -p /home/jan/Development/skara-brae && git clone --depth 1 ${{ github.server_url }}/jan/skara-brae-common.git /home/jan/Development/skara-brae/skara-brae-common
- name: Build
run: cargo build --workspace
- name: Test
run: cargo test --workspace --quiet