36
.gitea/workflows/cmake.yml
Normal file
36
.gitea/workflows/cmake.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user