-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (35 loc) · 1.09 KB
/
install.yml
File metadata and controls
47 lines (35 loc) · 1.09 KB
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
46
47
name: Install
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: get the compiler ready
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
- name: build and install library
run: |
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
sudo cmake --build build --target install
rm -rf build
- name: configure
run: cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1
- name: build_debug
run: cmake --build build --config Debug -j4
- name: test_debug
run: |
cd build
ctest --build-config Debug --progress
- name: build_release
run: cmake --build build --config Release -j4
- name: test_release
run: |
cd build
ctest --build-config Release --progress