Skip to content

Commit f256584

Browse files
committed
Enable warnings_as_errors for Erlang only on latest
1 parent c2a0f53 commit f256584

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
env:
1212
ELIXIR_ASSERT_TIMEOUT: 2000
1313
ELIXIRC_OPTS: "--warnings-as-errors"
14-
ERLC_OPTS: "warnings_as_errors"
1514
LANG: C.UTF-8
1615

1716
permissions:
@@ -26,6 +25,7 @@ jobs:
2625
include:
2726
- otp_version: "27.0"
2827
otp_latest: true
28+
erlc_opts: "warnings_as_errors"
2929
- otp_version: "26.0"
3030
- otp_version: "25.3"
3131
- otp_version: "25.0"
@@ -34,6 +34,11 @@ jobs:
3434
- otp_version: maint
3535
development: true
3636
runs-on: ubuntu-20.04
37+
# Earlier Erlang/OTP versions ignored compiler directives
38+
# when using warnings_as_errors. So we only set ERLC_OPTS
39+
# from Erlang/OTP 27+.
40+
env:
41+
ERLC_OPTS: ${{ matrix.erlc_opts || '' }}
3742
steps:
3843
- uses: actions/checkout@v4
3944
with:

0 commit comments

Comments
 (0)