2025-01-03 12:52:20 +01:00
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
2025-01-06 21:06:29 +01:00
|
|
|
build:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: forge.a-lec.org/speed-dreams/debian-sd:stable
|
|
|
|
steps:
|
2025-01-06 21:08:49 +01:00
|
|
|
- name: Clone repository
|
|
|
|
run: |
|
|
|
|
git clone \
|
|
|
|
-b ${{ env.GITHUB_HEAD_REF }} \
|
|
|
|
--depth 1 \
|
|
|
|
${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}.git \
|
|
|
|
/src
|
|
|
|
- name: Configure project
|
|
|
|
working-directory: /src
|
|
|
|
run: cmake -B build -DSD_ASSUME_DATADIR=1
|
|
|
|
- name: Build project
|
|
|
|
run: cmake --build build -j$(nproc --all)
|
|
|
|
working-directory: /src
|