mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
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>
(cherry picked from commit a5eeac8033
)
This commit is contained in:
parent
9c4d81ec5e
commit
d3a8cacfcc
7
.github/workflows/tools.yml
vendored
7
.github/workflows/tools.yml
vendored
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user