-
Notifications
You must be signed in to change notification settings - Fork 323
46 lines (41 loc) · 1.3 KB
/
test.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
46
name: Test SimpleIni
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- name: Install requirements
run: sudo apt install libgtest-dev cmake
- uses: actions/checkout@v3
- run: make all && make test
- name: test with CMake (-DSIMPLEINI_USE_SYSTEM_GTEST=OFF)
run: |
cmake . -B build -DSIMPLEINI_USE_SYSTEM_GTEST=OFF
cmake --build build
ctest --test-dir build
- name: test with CMake (-DSIMPLEINI_USE_SYSTEM_GTEST=ON)
run: |
cmake . -B build-system-gtest -DSIMPLEINI_USE_SYSTEM_GTEST=ON
cmake --build build-system-gtest
ctest --test-dir build-system-gtest
MacOS:
runs-on: macos-latest
steps:
- name: Install requirements
run: brew install googletest cmake
- uses: actions/checkout@v3
- run: make all && make test
- name: test with CMake (-DSIMPLEINI_USE_SYSTEM_GTEST=OFF)
run: |
cmake . -B build -DSIMPLEINI_USE_SYSTEM_GTEST=OFF
cmake --build build
ctest --test-dir build
- name: test with CMake (-DSIMPLEINI_USE_SYSTEM_GTEST=ON)
run: |
cmake . -B build-system-gtest -DSIMPLEINI_USE_SYSTEM_GTEST=ON
cmake --build build-system-gtest
ctest --test-dir build-system-gtest