Merge pull request 'Add build.yml Forgejo workflow' (#9) from build-workflow into main

Reviewed-on: speed-dreams/speed-dreams-code#9
This commit is contained in:
Xavier Del Campo Romero 2025-01-04 13:27:17 +01:00
commit c1cdee61e7

View file

@ -0,0 +1,16 @@
on: [pull_request]
jobs:
build:
runs-on: docker
container:
image: forge.a-lec.org/speed-dreams/debian-sd:stable
steps:
- run: |
git clone \
-b ${{ env.GITHUB_HEAD_REF }} \
--depth 1 \
${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}.git \
src
cd src/
cmake -B build -DSD_ASSUME_DATADIR=1
cmake --build build -j$(nproc --all)