-
-
Notifications
You must be signed in to change notification settings - Fork 6
84 lines (81 loc) · 2.47 KB
/
gtest-compat.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Google Test Compatible
on:
pull_request:
branches:
- master
- develop
- 'feature/**'
- 'fix/**'
- 'gh/**'
- 'github/**'
- 'githubactions/**'
paths-ignore:
- '*.ini'
- '*.md'
- '*.yml'
- '*.yaml'
- '.circleci/**'
- '.semaphore/**'
- '.github/**'
- '!.github/workflows/gtest-compat.yml'
- 'docs/**'
push:
branches:
- master
- develop
jobs:
prepare:
runs-on: ubuntu-latest
env:
HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
if: >
! contains(github.event.head_commit.message, '[ci skip gtest]')
steps:
- run: |
echo "$HEAD_COMMIT_MESSAGE"
gtest-compat:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- gtest-version: "latest"
GTEST_EXPECT_VER: 0x01120100
GTEST_EXPECT_LATEST: 1
- gtest-version: "release-1.12.1"
# 1.12.1 only change the version number
GTEST_EXPECT_VER: 0x01120000
- gtest-version: "release-1.12.0"
GTEST_EXPECT_VER: 0x01120000
- gtest-version: "release-1.11.0"
GTEST_EXPECT_VER: 0x01110000
- gtest-version: "release-1.10.0"
GTEST_EXPECT_VER: 0x01100000
- gtest-version: "release-1.8.1"
GTEST_EXPECT_VER: 0x01080100
- gtest-version: "release-1.8.0"
GTEST_EXPECT_VER: 0x01080000
- gtest-version: "release-1.7.0"
GTEST_EXPECT_VER: 0x01070000
- gtest-version: "release-1.6.0"
GTEST_EXPECT_VER: 0x01060000
- gtest-version: "release-1.5.0"
GTEST_EXPECT_VER: 0x01050000
fail-fast: false
container:
image: "srzzumix/googletest:${{ matrix.gtest-version }}"
env:
MAKE_OPTION: "-j4"
steps:
- uses: actions/checkout@v3
- name: Google Test
env:
GTEST_OPTION: "USE_GTEST=1"
run: |
make -C test clean
make -C test OUTPUTXML=1 "${GTEST_OPTION}" GTEST_EXPECT_VER=${{ matrix.GTEST_EXPECT_VER }} GTEST_EXPECT_LATEST=${{ matrix.GTEST_EXPECT_LATEST }} "${MAKE_OPTION}" test
- name: Google Mock
env:
GTEST_OPTION: "USE_GTEST=1 USE_GMOCK=1"
run: |
make -C test clean
make -C test OUTPUTXML=1 "${GTEST_OPTION}" GTEST_EXPECT_VER=${{ matrix.GTEST_EXPECT_VER }} GTEST_EXPECT_LATEST=${{ matrix.GTEST_EXPECT_LATEST }} "${MAKE_OPTION}" test