Files
dcfg/.gitea/workflows/cmake.yml
Slendi 8844317936
Some checks failed
CMake / ubuntu-latest - shared=OFF (push) Failing after 4s
CMake / ubuntu-latest - shared=ON (push) Failing after 4s
Add actions
Signed-off-by: Slendi <slendi@socopon.com>
2025-07-26 00:44:03 +03:00

37 lines
848 B
YAML

name: CMake
on:
push:
branches:
- master
- 'release-*'
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
shared: ["ON", "OFF"]
pthread_support: ["ON", "OFF"]
posix_support: ["ON", "OFF"]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - shared=${{ matrix.shared }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential
- name: Configure
run: |
cmake -Bbuild -S . \
-DDCFG_BUILD_SHARED=${{ matrix.shared }} \
-DDCFG_PTHREAD_SUPPORT=${{ matrix.pthread_support }} \
-DDCFG_POSIX_SUPPORT=${{ matrix.posix_support }}
- name: Build
run: |
cmake --build build