Skip to content

Commit 248aa7f

Browse files
committed
Add Werror
1 parent 93d0936 commit 248aa7f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/linux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
run: cpanm --quiet --installdeps --notest .
5353

5454
- name: Build
55-
run: perl Makefile.PL && make
55+
run: |
56+
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
57+
perl Makefile.PL CCFLAGS="$flags -Werror" && make
5658
5759
- name: Test
5860
run: make test
@@ -86,7 +88,9 @@ jobs:
8688
run: cpanm --quiet --installdeps --notest .
8789

8890
- name: Build
89-
run: perl Makefile.PL CC=g++ && make
91+
run: |
92+
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
93+
perl Makefile.PL CCFLAGS="$flags -Werror" CC=clang++ && make
9094
9195
- name: Test
9296
run: make test

.github/workflows/macos.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
run: brew install berkeley-db
5353

5454
- name: Build
55-
run: perl Makefile.PL && make
55+
run: |
56+
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
57+
perl Makefile.PL CCFLAGS="$flags -Werror" && make
5658
5759
- name: Test
5860
run: make test
@@ -87,7 +89,9 @@ jobs:
8789
run: cpanm --quiet --installdeps --notest .
8890

8991
- name: Build
90-
run: perl Makefile.PL CC=g++ && make
92+
run: |
93+
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
94+
perl Makefile.PL CCFLAGS="$flags -Werror" CC=clang++ && make
9195
9296
- name: Test
9397
run: make test

0 commit comments

Comments
 (0)