Skip to content

Commit b5ae298

Browse files
josevalimmaennchen
andcommitted
Enable warnings_as_errors for Erlang only on latest
Co-authored-by: Jonatan Männchen <[email protected]>
1 parent 8e49286 commit b5ae298

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,20 @@ jobs:
3030
deterministic: true
3131
- otp_version: "27.1"
3232
otp_latest: true
33+
erlc_opts: "warnings_as_errors"
3334
- otp_version: "27.0"
35+
erlc_opts: "warnings_as_errors"
3436
- otp_version: "26.0"
3537
- otp_version: master
3638
development: true
3739
- otp_version: maint
3840
development: true
3941
runs-on: ubuntu-24.04
42+
# Earlier Erlang/OTP versions ignored compiler directives
43+
# when using warnings_as_errors. So we only set ERLC_OPTS
44+
# from Erlang/OTP 27+.
45+
env:
46+
ERLC_OPTS: ${{ matrix.erlc_opts || '' }}
4047
steps:
4148
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4249
with:

0 commit comments

Comments
 (0)