Skip to content

Commit 7089468

Browse files
authored
Merge pull request #631 from junaruga/wip/check-compiler-warnings
CI: Check compiler warnings.
2 parents 6f1c061 + 52402f6 commit 7089468

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
run: echo "MAKEFLAGS=V=1" >> $GITHUB_ENV
4848
if: runner.os == 'Linux' || runner.os == 'macOS'
4949

50+
- name: set flags to check compiler warnings.
51+
run: echo "RUBY_OPENSSL_EXTCFLAGS=-Werror" >> $GITHUB_ENV
52+
if: ${{ !matrix.skip-warnings }}
53+
5054
- name: compile
5155
run: rake compile -- --enable-debug
5256

@@ -142,6 +146,10 @@ jobs:
142146
run: echo "MAKEFLAGS=V=1" >> $GITHUB_ENV
143147
if: runner.os == 'Linux' || runner.os == 'macOS'
144148

149+
- name: set flags to check compiler warnings.
150+
run: echo "RUBY_OPENSSL_EXTCFLAGS=-Werror" >> $GITHUB_ENV
151+
if: ${{ !matrix.skip-warnings }}
152+
145153
- name: compile
146154
run: rake compile -- --enable-debug --with-openssl-dir=$HOME/.openssl/${{ matrix.openssl }}
147155

0 commit comments

Comments
 (0)