-
Notifications
You must be signed in to change notification settings - Fork 15
30 lines (27 loc) · 955 Bytes
/
GoogleTest.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
# https://github.com/bastianhjaeger/github_actions_gtest_example
name: GoogleTest
on:
push:
branches: [ master ]
paths:
- 'src/**'
- 'test/**'
pull_request:
branches: [ master ]
paths:
- 'src/**'
- 'test/**'
jobs:
build:
if: "!contains(github.event.commits[0].message, '#skipgoogletest')"
runs-on: ubuntu-latest
steps:
- name: Install manually
run: sudo apt-get install libgtest-dev && cd /usr/src/googletest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
- uses: actions/checkout@v1
- name: configure
run: mkdir build && cd build && cmake ..
- name: make
run: cd build && make
- name: Run Test
run: /home/runner/work/raytracing-from-the-ground-up/raytracing-from-the-ground-up/build/test/runTest