Skip to content

Commit 7a7cdbe

Browse files
committed
Fix CI
1 parent df8784d commit 7a7cdbe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ jobs:
3636
- otp_version: maint
3737
development: true
3838
runs-on: ubuntu-24.04
39-
env:
40-
ERL_COMPILER_OPTIONS: ${{ matrix.deterministic && 'warnings_as_errors deterministic' || '' }}
4139
steps:
4240
- uses: actions/checkout@v4
4341
with:
4442
fetch-depth: 50
4543
- uses: erlef/setup-beam@v1
4644
with:
4745
otp-version: ${{ matrix.otp_version }}
46+
- name: Set ERL_COMPILER_OPTIONS
47+
if: ${{ matrix.deterministic }}
48+
run: echo 'ERL_COMPILER_OPTIONS="deterministic warnings_as_errors"' >> $GITHUB_ENV
4849
- name: Compile Elixir
4950
run: |
5051
make compile
@@ -69,12 +70,12 @@ jobs:
6970
cd ../elixir/
7071
make docs
7172
- name: Check reproducible builds
73+
if: ${{ matrix.deterministic }}
7274
run: |
7375
rm -rf .git
7476
# Recompile System without .git
7577
cd lib/elixir && ../../bin/elixirc -o ebin lib/system.ex && cd -
7678
taskset 1 make check_reproducible
77-
if: ${{ matrix.deterministic }}
7879
7980
test_windows:
8081
name: Windows Server 2019, Erlang/OTP ${{ matrix.otp_version }}

0 commit comments

Comments
 (0)