-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (37 loc) · 1.11 KB
/
cmake.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
44
45
name: CMake
on: [push, pull_request, fork, workflow_dispatch]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure CMake
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: build
run: |
cmake --build . --config ${{env.BUILD_TYPE}}
cmake --install . --prefix ../dist --component blf_converter
- name: Test
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: ${{matrix.os}} artifacts
path: dist