From 33664e2204e1e21d0e5955a23462e1423b9562df Mon Sep 17 00:00:00 2001 From: Andreas Hasselberg Date: Wed, 6 Nov 2024 10:01:41 +0100 Subject: [PATCH 1/2] Upgrade upload-artifact action to v4 Artifact actions v3 will be deprecated by December 5, 2024. After this date using v3 of these actions will result in a workflow failure. --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a20df9..fef9c1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,10 +41,12 @@ jobs: - name: Run CT Tests run: rebar3 ct - name: Store CT Logs - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: ct-logs + name: ct-logs_otp${{ matrix.otp-version }}_ref${{ github.sha }} path: _build/test/logs + overwrite: true + retention-days: 5 - name: Run Checks run: rebar3 do dialyzer, xref - name: Create Cover Reports @@ -56,10 +58,11 @@ jobs: - name: Produce Documentation run: rebar3 ex_doc || true - name: Publish Documentation - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: edoc + name: edoc_otp${{ matrix.otp-version }} path: doc + overwrite: true docs: strategy: matrix: From faee75d3bcb8467ecb8e65c733f6834398f6bbad Mon Sep 17 00:00:00 2001 From: Andreas Hasselberg Date: Wed, 6 Nov 2024 10:32:42 +0100 Subject: [PATCH 2/2] Don't generate docs on otp 24 as plugin doesn't support it --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fef9c1a..8e0077c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest] - otp-version: [24, 25, 26, 27] + otp-version: [25, 26, 27] runs-on: ${{ matrix.platform }} container: image: erlang:${{ matrix.otp-version }}