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: |
|
2025-01-12 21:41:53 +01:00
|
|
|
git clone -q \
|
2025-01-06 21:08:49 +01:00
|
|
|
-b ${{ env.GITHUB_HEAD_REF }} \
|
|
|
|
${{ 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
|
2025-01-06 23:33:11 +01:00
|
|
|
- name: Build Debian package
|
|
|
|
run: cpack -G DEB
|
|
|
|
working-directory: /src/build
|