File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,13 @@ jobs:
52
52
run : brew install berkeley-db
53
53
54
54
- name : Build
55
- run : |
56
- flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
57
- perl Makefile.PL CCFLAGS="$flags -Werror" && make
55
+ run : perl Makefile.PL && make
58
56
59
57
- name : Test
60
58
run : make test
61
59
62
60
63
- c-plus-plus :
61
+ werror :
64
62
65
63
runs-on : ubuntu-latest
66
64
69
67
perl :
70
68
- latest
71
69
70
+ compiler :
71
+ - name : clang
72
+ werror : -Werror -Wno-error=deprecated
73
+
74
+ - name : clang++
75
+ werror : -Werror -Wno-error=deprecated
72
76
73
77
name : Perl ${{ matrix.perl }}
74
78
steps :
@@ -88,10 +92,14 @@ jobs:
88
92
- name : Install Perl dependencies
89
93
run : cpanm --quiet --installdeps --notest .
90
94
95
+ # Need the -Wno-error=deprecated below to stop this terminating the workflow
96
+ #
97
+ # clang: error: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated]
98
+
91
99
- name : Build
92
100
run : |
93
101
flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' )
94
- perl Makefile.PL CCFLAGS="$flags -Werror " CC=clang++ && make
102
+ perl Makefile.PL CCFLAGS="$flags ${{ matrix.compiler.wname }} " CC=${{ matrix.compiler.name }} && make
95
103
96
104
- name : Test
97
105
run : make test
You can’t perform that action at this time.
0 commit comments