Skip to content

Commit fc71582

Browse files
committed
cmake build
1 parent b58d596 commit fc71582

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/cmake_build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CMake Build CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '20 4 * * 1'
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
lib_type: [static, shared]
18+
include:
19+
- lib_type: static
20+
cmake-lib_type: "-DBUILD_SHARED_LIBS=Off"
21+
- lib_type: shared
22+
cmake-lib_type: "-DBUILD_SHARED_LIBS=On"
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
env:
27+
CTEST_OUTPUT_ON_FAILURE: 1
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
32+
- name: Create Build Environment
33+
run: cmake -E make_directory ${{github.workspace}}/build
34+
35+
- name: Configure CMake
36+
working-directory: ${{github.workspace}}/build
37+
shell: bash
38+
run: cmake $GITHUB_WORKSPACE -DLIBSRTP_TEST_APPS=OFF -DCMAKE_BUILD_TYPE="Release" ${{env.cmake-lib-type}}
39+
40+
- name: Build
41+
working-directory: ${{github.workspace}}/build
42+
shell: bash
43+
run: cmake --build .
44+

0 commit comments

Comments
 (0)