Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit cd8384a

Browse files
committed
ci(deps): ensure same language standard
1 parent ba0e6d7 commit cd8384a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/cache@v4
4646
with:
4747
path: gtest/
48-
key: ${{runner.os}}-gtest-1.14-${{matrix.lib}}-${{matrix.arch}}-${{matrix.build_type}}
48+
key: ${{runner.os}}-gtest-1.14-C++${{matrix.std}}-${{matrix.lib}}-${{matrix.arch}}-${{matrix.build_type}}
4949

5050
- name: Download GTest
5151
if: steps.cache-gtest.outputs.cache-hit != 'true'
@@ -59,8 +59,9 @@ jobs:
5959
cmake -S googletest-1.14.0 -B build-googletest `
6060
-A ${{matrix.arch}} `
6161
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} `
62-
-Dgtest_force_shared_crt=ON `
63-
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/gtest
62+
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
63+
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/gtest `
64+
-Dgtest_force_shared_crt=ON
6465
cmake --build build-googletest `
6566
--config ${{matrix.build_type}} `
6667
--target install
@@ -70,7 +71,7 @@ jobs:
7071
uses: actions/cache@v4
7172
with:
7273
path: gflags/
73-
key: ${{runner.os}}-gflags-2.2.2-${{matrix.lib}}-${{matrix.arch}}-${{matrix.build_type}}
74+
key: ${{runner.os}}-gflags-2.2.2-C++${{matrix.std}}-${{matrix.lib}}-${{matrix.arch}}-${{matrix.build_type}}
7475

7576
- name: Download gflags
7677
if: steps.cache-gflags.outputs.cache-hit != 'true'
@@ -84,6 +85,7 @@ jobs:
8485
cmake -S gflags-2.2.2 -B build-gflags `
8586
-A ${{matrix.arch}} `
8687
-DBUILD_SHARED_LIBS=${{matrix.lib == 'shared'}} `
88+
-DCMAKE_CXX_STANDARD=${{matrix.std}} `
8789
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/gflags
8890
cmake --build build-gflags `
8991
--config ${{matrix.build_type}} `

0 commit comments

Comments
 (0)