Skip to content

Commit

Permalink
Merge pull request #648 from pguyot/w25/fix-test_gc-otp26
Browse files Browse the repository at this point in the history
Fix test_gc on OTP26 on Linux using official docker image

Test weirdfully fails with binary provided by erlef/setup-beam.
Use
[Erlang/OTP official docker image](https://registry.hub.docker.com/_/erlang/)
instead. See erlef/setup-beam#220

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Jun 26, 2023
2 parents fe53238 + 76e98ed commit 2378aa8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/run-tests-with-beam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:
jobs:
run-tests:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -50,6 +51,7 @@ jobs:
- os: "ubuntu-22.04"
test_erlang_opts: "-s prime_smp"
otp: "26"
container: erlang:26

- os: "macos-latest"
otp: "23"
Expand All @@ -73,16 +75,22 @@ jobs:
submodules: 'recursive'

- uses: erlef/setup-beam@v1
if: runner.os == 'Linux'
if: runner.os == 'Linux' && matrix.container == ''
with:
otp-version: ${{ matrix.otp }}

- name: "Install deps (Linux)"
if: runner.os == 'Linux'
if: runner.os == 'Linux' && matrix.container == ''
run: |
sudo apt update -y
sudo apt install -y cmake gperf zlib1g-dev ninja-build
- name: "Install deps (container)"
if: runner.os == 'Linux' && matrix.container != ''
run: |
apt update -y
apt install -y cmake gperf zlib1g-dev ninja-build
- name: "Install deps (macOS)"
if: runner.os == 'macOS'
run: brew install gperf erlang@${{ matrix.otp }} ninja
Expand Down

0 comments on commit 2378aa8

Please sign in to comment.