From 957c5918b83590f57ca00459e24b37ac4b0af4c1 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 2 Jan 2023 20:47:49 +0800 Subject: [PATCH] Upload golden files on failure --- .github/workflows/release.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 111a169..a9c4b6f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -272,6 +272,14 @@ jobs: DISTRO: ${{ matrix.DISTRO }} APT_GET: "sudo apt-get" + - if: failure() + name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: testfiles + path: | + ./test/golden/unix/GHCupInfo*json + test-arm: name: Test ARM needs: "build-arm" @@ -331,6 +339,14 @@ jobs: GHC_VER: ${{ matrix.GHC_VER }} DISTRO: Ubuntu + - if: failure() + name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: testfiles + path: | + ./test/golden/unix/GHCupInfo*json + test-macwin: name: Test Mac/Win needs: "build-macwin" @@ -377,6 +393,22 @@ jobs: GHC_VER: ${{ matrix.GHC_VER }} DISTRO: ${{ matrix.DISTRO }} HOMEBREW_CHANGE_ARCH_TO_ARM: 1 + + - if: failure() && runner.os == 'Windows' + name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: testfiles + path: | + ./test/golden/windows/GHCupInfo*json + + - if: failure() && runner.os != 'Windows' + name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: testfiles + path: | + ./test/golden/unix/GHCupInfo*json hls: name: hls needs: build-linux