Skip to content

Commit

Permalink
CI: move logs/ to GITHUB_WORKSPACE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aparcar committed Mar 9, 2022
1 parent 6b82218 commit a5eeac8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tools.yml
Expand Up @@ -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"

0 comments on commit a5eeac8

Please sign in to comment.