-
Notifications
You must be signed in to change notification settings - Fork 53
51 lines (48 loc) · 1.54 KB
/
debug.yml
File metadata and controls
51 lines (48 loc) · 1.54 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
48
49
50
51
name: github_actions_gtest_example-Debug
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Download, configure and install gtest
run: |
wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
tar xf release-1.10.0.tar.gz
cd googletest-release-1.10.0
cmake -DBUILD_SHARED_LIBS=OFF .
sudo make install
- name: Checkout the project
uses: actions/checkout@v1
- name: Do some tests
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror" ..
make
/home/runner/work/github_actions_gtest_example/github_actions_gtest_example/build/test/github_actions_gtest_example.test
build-macos:
runs-on: macos-latest
steps:
- name: Download, configure and install gtest
run: |
wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
tar xf release-1.10.0.tar.gz
cd googletest-release-1.10.0
cmake -DBUILD_SHARED_LIBS=OFF .
sudo make install
- name: Checkout the project
uses: actions/checkout@v1
- name: Do some tests
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror" ..
VERBOSE=1 make
pwd
/Users/runner/work/github_actions_gtest_example/github_actions_gtest_example/build/test/github_actions_gtest_example.test