All checks were successful
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 15s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Successful in 17s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Successful in 15s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Successful in 12s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Successful in 10s
Signed-off-by: Slendi <slendi@socopon.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
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"]
|
|
exclude:
|
|
- posix_support: "OFF"
|
|
pthread_support: "ON"
|
|
runs-on: ${{ matrix.os }}
|
|
name: ${{ matrix.os }} - shared=${{ matrix.shared }}, pthread=${{ matrix.pthread_support }}, posix=${{ matrix.posix_support }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: |
|
|
apt-get update
|
|
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
|
|
|