libcreate/.forgejo/workflows/test.yaml
Christoph Heiss ea9dc430c1
Some checks are pending
Package / package (map[dpkg:arm64 runs-on:debian-12-arm64]) (push) Waiting to run
Build and test / test (push) Successful in 2m1s
ci: switch to forgejo actions
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-06-06 20:00:51 +02:00

34 lines
755 B
YAML

---
name: Build and test
on:
push:
branches:
- master
pull_request:
env:
BUILD_TYPE: Release
jobs:
test:
runs-on: debian-12
steps:
- name: Install dependencies
run: |
apt update
apt install -y \
build-essential cmake git libboost-system-dev libboost-thread-dev file libgtest-dev googletest
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }}
- name: Test
working-directory: ${{ github.workspace }}/build
run: ctest -C ${{ env.BUILD_TYPE }}