-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 991 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ci
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
name:
default: "Manual Trigger"
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v3
- name: Install Ninja
run: sudo apt-get install ninja-build
- name: Configure CMake
run: cmake -GNinja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DLIBDSP_LIB_ONLY=ON -DLIBDSP_BUILD_TESTS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Run Tests
run: ctest --test-dir ./build --output-junit result.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: ${{github.workspace}}/build/result.xml