From b4502999daba894f3b140248230aa9bdfddd0dd2 Mon Sep 17 00:00:00 2001 From: Jan-Peter von Hunnius Date: Tue, 1 Sep 2026 06:25:00 +0200 Subject: [PATCH] CI: add workspace build/test workflow; clones skara-brae-common to the absolute path expected by the sb-common path dependency --- .gitea/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..55d0f80 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,22 @@ +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: 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