aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2022-03-09 13:30:21 +0100
committerPaul Spooren <mail@aparcar.org>2022-03-09 14:24:49 +0100
commita5eeac8033786a7a04b7569175e41e415b6579c0 (patch)
tree75c1f8bde8383709a66ddf9d4ab99b1ae54126a2
parent6b822189b11d0abb3a8618f7b9f73a9de50caabd (diff)
downloadupstream-a5eeac8033786a7a04b7569175e41e415b6579c0.tar.gz
upstream-a5eeac8033786a7a04b7569175e41e415b6579c0.tar.bz2
upstream-a5eeac8033786a7a04b7569175e41e415b6579c0.zip
CI: move logs/ to GITHUB_WORKSPACE
Artifacts can only be uploaded from inside the GITHUB_WORKSPACE. While the Linux CI jobs run inside that per default, a special case-sensitive mount outside the GITHUB_WORKSPACE is used for macOS builds. To make log artifacts work for both macOS and Linux, move logs/ folder to GITHUB_WORKSPACE on failures. Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--.github/workflows/tools.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 153db73625..76cbd30db7 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -121,9 +121,14 @@ jobs:
cd "$WORKPATH"
make tools/install -j$(nproc) BUILD_LOG=1
+ - name: Move logs to GITHUB_WORKSPACE
+ if: failure()
+ run: |
+ cp -r "$WORKPATH/logs" "$GITHUB_WORKSPACE"
+
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-logs
- path: "$WORKPATH/logs"
+ path: "logs"