libcreate/.forgejo/workflows/test.yaml
Christoph Heiss 57d3b9f29a
Some checks failed
Build and test / test (push) Failing after 8s
ci: switch to forgejo actions
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-06-06 19:58:45 +02:00

34 lines
758 B
YAML

---
name: Build and test
on:
push:
branches:
- master
pull_request:
env:
BUILD_TYPE: Release
jobs:
test:
runs-on: ubuntu-24.04
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 }}