diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04fc9fc..bdff676 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,26 +13,33 @@ env: jobs: check: runs-on: ubuntu-latest + strategy: + matrix: + combo: + - otp-version: '25.2' + rebar3-version: '3.18.0' + - otp-version: '26.2' + rebar3-version: '3.23.0' + - otp-version: '27.2' + rebar3-version: '3.24.0' + - otp-version: '28.0' + rebar3-version: '3.25.0' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: webfactory/ssh-agent@v0.7.0 + - uses: erlef/setup-beam@v1.18 with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + otp-version: ${{ matrix.combo.otp-version }} + rebar3-version: ${{ matrix.combo.rebar3-version }} - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.OTP-VERSION }} - rebar3-version: ${{ env.REBAR3-VERSION }} - - - uses: actions/cache@v3.2.6 + - uses: actions/cache@v4 id: rebar3-cache with: path: | ~/.cache/rebar3 _build - key: ${{ runner.os }}-${{ env.OTP-VERSION }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }} + key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.combo.otp-version }}-${{ matrix.combo.rebar3-version }}-${{ hashFiles('rebar.lock') }} - name: Compile run: | diff --git a/rebar.config b/rebar.config index 2d23bce..932e0ee 100644 --- a/rebar.config +++ b/rebar.config @@ -9,23 +9,24 @@ {shell, [nuid]}. {project_plugins, [ - {erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}}, - {gradualizer, {git, "git@github.com:josefs/Gradualizer.git", {branch, "master"}}} + erlfmt, + {gradualizer, {git, "https://github.com/josefs/Gradualizer.git", {tag, "0.3.0"}}} ]}. + {erlfmt, [write]}. {profiles, [ {test, [ {erl_opts, [nowarn_export_all]}, {deps, [ - {nct_util, {git, "git@github.com:nomasystems/nct_util.git", {branch, "main"}}}, - {triq, {git, "git@github.com:nomasystems/triq.git", {branch, "master"}}} + {nct_util, {git, "https://github.com/nomasystems/nct_util.git", {branch, "main"}}}, + {triq, {git, "https://github.com/nomasystems/triq.git", {branch, "master"}}} ]} ]}, {bench, [ {deps, [ - {eflambe, {git, "git@github.com:Stratus3D/eflambe.git", {branch, "master"}}}, - {erlperf, {git, "git@github.com:max-au/erlperf.git", {branch, "master"}}} + {eflambe, {git, "https://github.com/Stratus3D/eflambe.git", {branch, "master"}}}, + {erlperf, {git, "https://github.com/max-au/erlperf.git", {branch, "master"}}} ]}, {extra_src_dirs, [{"bench", [{recursive, false}]}]} ]}