Skip to content

Commit

Permalink
Fix OTP Version for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Dec 22, 2024
1 parent bb1c87a commit 5ef951e
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/part_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ env:
ERL_AFLAGS: "-enable-feature all"

jobs:
detectToolVersions:
name: "Detect Tool Versions"

runs-on: ubuntu-latest

outputs:
otpVersion: "${{ steps.toolVersions.outputs.OTP_VERSION }}"
elixirVersion: "${{ steps.toolVersions.outputs.ELIXIR_VERSION }}"

steps:
- uses: actions/checkout@v4
- name: "Read .tool-versions"
id: toolVersions
run: |
OTP_VERSION="$(cat .tool-versions | grep erlang | cut -d' ' -f2-)"
echo OTP: $OTP_VERSION
echo "OTP_VERSION=${OTP_VERSION}" >> $GITHUB_OUTPUT
ELIXIR_VERSION="$(cat .tool-versions | grep elixir | cut -d' ' -f2-)"
echo Rebar: $ELIXIR_VERSION
echo "ELIXIR_VERSION=${ELIXIR_VERSION}" >> $GITHUB_OUTPUT
mix_format:
name: mix format

Expand Down Expand Up @@ -61,31 +39,35 @@ jobs:

runs-on: ubuntu-latest

needs: ["detectToolVersions"]

strategy:
fail-fast: false
matrix:
include:
- elixir: "1.15.0"
otp: "26.2.5.6"
unstable: false
- elixir: "1.15.8"
otp: "26.2.5.6"
unstable: false
- elixir: "1.16.3"
otp: "26.2.5.6"
unstable: false
- elixir: "1.17.3"
otp: "26.2.5.6"
unstable: false
- elixir: "1.18.0"
otp: "27.2"
unstable: false
- elixir: "main"
otp: "27.2"
unstable: true

steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
id: setupBEAM
with:
otp-version: "${{ needs.detectToolVersions.outputs.otpVersion }}"
otp-version: "${{ matrix.otp }}"
elixir-version: "${{ matrix.elixir }}"
version-type: strict
- uses: actions/cache@v4
Expand Down

0 comments on commit 5ef951e

Please sign in to comment.