Skip to content

Commit

Permalink
Test only for "latest", based on Renovate'able .tool-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Jul 13, 2024
1 parent b61d05b commit a44e066
Showing 1 changed file with 4 additions and 29 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
windows: 2022
# renovate datasource: github-runners, depName: macos
macos: 14
# renovate datasource: github-tags, depName: erlang/rebar3
rebar3: 3.23.0

steps:
- run: echo "versions set!"
Expand All @@ -36,30 +34,10 @@ jobs:
include:
- os-base: ubuntu
os-vsn: ${{ needs.vsns.outputs.ubuntu }}
otp-version: 26
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}
- os-base: ubuntu
os-vsn: ${{ needs.vsns.outputs.ubuntu }}
otp-version: 27
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}
- os-base: windows
os-vsn: ${{ needs.vsns.outputs.windows }}
# 26.2.5.2 failing for some reason...
otp-version: 26.2.5.1
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}
- os-base: windows
os-vsn: ${{ needs.vsns.outputs.windows }}
otp-version: 27
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}
# macos, for now, is considered best-effort
- os-base: macos
os-vsn: ${{ needs.vsns.outputs.macos }}
otp-version: 26
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}
- os-base: macos # macos, for now, is considered best-effort
os-vsn: ${{ needs.vsns.outputs.macos }}
otp-version: 27
rebar3-version: ${{ needs.vsns.outputs.rebar3 }}

runs-on: ${{matrix.os-base}}-${{matrix.os-vsn}}

Expand All @@ -69,16 +47,13 @@ jobs:
- uses: erlef/setup-beam@a6e26b22319003294c58386b6f25edbc7336819a # v1.18.0
id: setup-beam
with:
otp-version: ${{matrix.otp-version}}
rebar3-version: ${{matrix.rebar3-version}}
version-type: strict
version-file: .tool-versions
if: ${{matrix.os-base != 'macos'}}

- run: |
# there be dragons
sed -i '' 's/erlang .*/erlang ${{matrix.otp-version}}/g' .tool-versions
if: ${{matrix.os-base == 'macos'}}
- uses: asdf-vm/actions/[email protected]
erlang=$(< .tool-versions grep erlang | sed -E 's/erlang ([^\.]+).*/\1/g')
brew install "erlang@${erlang}"
if: ${{matrix.os-base == 'macos'}}
- name: Restore _build
Expand Down

0 comments on commit a44e066

Please sign in to comment.