-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (27 loc) · 918 Bytes
/
consume.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
# Test consuming libbase122.
name: Test Consuming libbase122
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/cmake-build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build ${{github.workspace}}/cmake-build --config Debug
- name: Install
run: cmake --install ${{github.workspace}}/cmake-build --prefix ${{github.workspace}}/.install --config Debug
- name: Consume with CMake config file
working-directory: ${{github.workspace}}/test/testconsumer
run: |
cmake \
-DLIBBASE122_USE_CONFIG_FILE=ON \
-DCMAKE_PREFIX_PATH=${{github.workspace}}/.install \
-S. -Bcmake-build
cmake --build cmake-build
./cmake-build/testconsumer