Skip to content
Snippets Groups Projects
Commit a5eeac80 authored by Paul Spooren's avatar Paul Spooren
Browse files

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: default avatarPaul Spooren <mail@aparcar.org>
parent 6b822189
No related branches found
No related tags found
No related merge requests found
...@@ -121,9 +121,14 @@ jobs: ...@@ -121,9 +121,14 @@ jobs:
cd "$WORKPATH" cd "$WORKPATH"
make tools/install -j$(nproc) BUILD_LOG=1 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 - name: Upload logs
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.os }}-logs name: ${{ matrix.os }}-logs
path: "$WORKPATH/logs" path: "logs"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment