Skip to content

Commit

Permalink
FreeBSD - add log upload on build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
phnzb committed Nov 22, 2024
1 parent ec350c1 commit 4c84c6e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: freebsd build
name: freebsd build

on:
workflow_call:
Expand All @@ -9,7 +9,7 @@ jobs:
runs-on: [self-hosted, nzbget-freebsd]

steps:

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -28,6 +28,14 @@ jobs:
fi
bash linux/build-nzbget.sh $BUILD_PARAMS
- name: Upload full build log on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: nzbget-freebsd-build-log
path: build/build.log
retention-days: 5

- name: Rename build artifacts
if: github.ref_name != 'main' && github.ref_name != 'develop'
run: |
Expand Down

0 comments on commit 4c84c6e

Please sign in to comment.