CI: add workspace build/test workflow; clones skara-brae-common to the absolute path expected by the sb-common path dependency
Some checks failed
build / build-test (push) Failing after 57s
Some checks failed
build / build-test (push) Failing after 57s
This commit is contained in:
parent
6410e0a86d
commit
b4502999da
1 changed files with 22 additions and 0 deletions
22
.gitea/workflows/build.yml
Normal file
22
.gitea/workflows/build.yml
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue