Add build.yml Forgejo workflow
All checks were successful
/ build (pull_request) Successful in 12m52s

This commit is contained in:
Xavier Del Campo Romero 2025-01-03 12:52:20 +01:00
parent 7d2727c579
commit 17f37e85ad
Signed by: xavi
GPG key ID: 84FF3612A9BF43F2

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)