fix googletest comapt #737
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 0x01140000 | |
GTEST_EXPECT_LATEST: 1 | |
- gtest-version: "release-1.14.0" | |
GTEST_EXPECT_VER: 0x01140000 | |
- gtest-version: "release-1.13.0" | |
GTEST_EXPECT_VER: 0x01130000 | |
- 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 }}" | |
credentials: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
env: | |
MAKE_OPTION: "-j4" | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | |