From e16103d45e3c487a0304dd32c9ac0c3717682e42 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Thu, 27 Jul 2023 21:48:00 +0100 Subject: [PATCH] Update CI --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f7fbee..0e55914 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,17 +14,52 @@ jobs: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - otp_version: ['24', '23', '22', '21'] - os: [ubuntu-latest] + include: + - otp_version: 26 + os: ubuntu-22.04 + rebar3_version: 3.22 + - otp_version: 25 + os: ubuntu-22.04 + rebar3_version: 3.22 + - otp_version: 24 + os: ubuntu-22.04 + rebar3_version: 3.22 + - otp_version: 23 + os: ubuntu-20.04 + rebar3_version: 3.18 + - otp_version: 22 + os: ubuntu-20.04 + rebar3_version: 3.18 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Restore _build + uses: actions/cache@v3 + with: + path: _build + key: "_build-cache-for\ + -os-${{runner.os}}\ + -otp-${{steps.setup-beam.outputs.otp-version}}\ + -rebar3-${{steps.setup-beam.outputs.rebar3-version}}\ + -hash-${{hashFiles('rebar.lock')}}" + + - name: Restore rebar3's cache + uses: actions/cache@v3 + with: + path: ~/.cache/rebar3 + key: "rebar3-cache-for\ + -os-${{runner.os}}\ + -otp-${{steps.setup-beam.outputs.otp-version}}\ + -rebar3-${{steps.setup-beam.outputs.rebar3-version}}\ + -hash-${{hashFiles('rebar.lock')}}" - uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp_version }} - rebar3-version: '3.14' + rebar3-version: ${{ matrix.rebar3_version }} - name: Compile run: rebar3 compile @@ -36,9 +71,8 @@ jobs: run: rebar3 xref - name: Covertool - if: ${{ always() }} run: rebar3 covertool generate - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v3 with: - file: _build/test/covertool/elli.covertool.xml + files: _build/test/covertool/elli.covertool.xml env_vars: OTP_VERSION