Skip to content

Commit

Permalink
feat(ci): add build forcing c++ mode
Browse files Browse the repository at this point in the history
Add a distcheck build that sets CFLAGS such that it treats all files as
C++, preventing pull requests from breaking C++ compatibility going
forward.

stack-info: PR: #578, branch: aws-nslick/stack/25
Signed-off-by: Nicholas Sielicki <[email protected]>
  • Loading branch information
aws-nslick committed Sep 6, 2024
1 parent 8f5983d commit 4158878
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/distcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:
sdk:
- cuda
- neuron
ccmode:
- c
- cpp

include:
- cc-variant: latest
Expand Down Expand Up @@ -182,6 +185,11 @@ jobs:
export CC="${{ matrix.realcc || matrix.cc }}"
if [ "${{ matrix.ccmode }}" == "cpp" ]; then
export CC="${CC/clang/clang++}"
export CC="${CC/gcc/g++}"
fi
# actions/checkout@v4 would drop the plugin source in $PWD,
# so go ahead and build it.
./autogen.sh
Expand Down

0 comments on commit 4158878

Please sign in to comment.