From b5ae2987c37c1dab623baf93ed94296d1e2ac432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 30 Oct 2024 09:16:39 +0100 Subject: [PATCH] Enable warnings_as_errors for Erlang only on latest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jonatan Männchen --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57e9f1a80a0..be10cf55ded 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,20 @@ jobs: deterministic: true - otp_version: "27.1" otp_latest: true + erlc_opts: "warnings_as_errors" - otp_version: "27.0" + erlc_opts: "warnings_as_errors" - otp_version: "26.0" - otp_version: master development: true - otp_version: maint development: true runs-on: ubuntu-24.04 + # Earlier Erlang/OTP versions ignored compiler directives + # when using warnings_as_errors. So we only set ERLC_OPTS + # from Erlang/OTP 27+. + env: + ERLC_OPTS: ${{ matrix.erlc_opts || '' }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: