Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
aws-nslick committed Sep 5, 2024
1 parent 1edde14 commit 9576dfb
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
@@ -95,6 +95,9 @@ jobs:
sdk:
- cuda
- neuron
ccmode:
- c
- cpp

include:
- cc-variant: latest
@@ -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

0 comments on commit 9576dfb

Please sign in to comment.