Skip to content

Commit 04a4c6b

Browse files
committed
Set c++ standard version in a more CMake-friendly way
1 parent 77e831d commit 04a4c6b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/sanity-test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
fail-fast: false
210210
matrix:
211211
compiler: [gcc-9, clang-9]
212-
std: [c++11, c++14, c++17, c++2a]
212+
cxx-std: ["11", "14", "17", "20"]
213213
steps:
214214
- uses: aws-actions/configure-aws-credentials@v4
215215
with:
@@ -226,9 +226,7 @@ jobs:
226226

227227
- name: Build aws-crt-cpp with ${{ matrix.compiler }}/${{ matrix.std }}
228228
run: |
229-
export CXXFLAGS=-std=${{ matrix.std }}
230-
export VERBOSE=1
231-
python3 builder.pyz build -p aws-crt-cpp --compiler=${{ matrix.compiler }}
229+
python3 builder.pyz build -p aws-crt-cpp --compiler=${{ matrix.compiler }} --cmake-extra=-DCMAKE_CXX_STANDARD=${{ matrix.cxx-std }}
232230
233231
release_notes:
234232
strategy:

0 commit comments

Comments
 (0)