From 76e98ed88eeb440ec24617602cabcf14586b180a Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Mon, 26 Jun 2023 22:06:42 +0200 Subject: [PATCH] Fix test_gc on OTP26 on Linux using official docker image Test weirdfully fails with binary provided by erlef/setup-beam. Signed-off-by: Paul Guyot --- .github/workflows/run-tests-with-beam.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests-with-beam.yaml b/.github/workflows/run-tests-with-beam.yaml index 245717408..737a7908a 100644 --- a/.github/workflows/run-tests-with-beam.yaml +++ b/.github/workflows/run-tests-with-beam.yaml @@ -23,6 +23,7 @@ on: jobs: run-tests: runs-on: ${{ matrix.os }} + container: ${{ matrix.container }} strategy: fail-fast: false matrix: @@ -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" @@ -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