From 6038e70e2a2c71a0b095094e015f8f1749c76e5c Mon Sep 17 00:00:00 2001 From: Gaspard Kirira Date: Wed, 28 Jan 2026 10:50:05 +0300 Subject: [PATCH] ci(release): upload build logs after build --- .github/workflows/release.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bbbc74..ddc922f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -233,14 +233,6 @@ jobs: Get-ChildItem -Recurse -Depth 3 logs | ForEach-Object { $_.FullName } - - name: Upload configure logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: cmake-logs-${{ matrix.vixos }}-${{ matrix.arch }} - path: logs/${{ matrix.vixos }}-${{ matrix.arch }}/* - if-no-files-found: warn - - name: Build (Unix) if: runner.os != 'Windows' shell: bash @@ -259,6 +251,14 @@ jobs: test -f build_output.log && cp -f build_output.log "$OUT/" || true find logs -type f -maxdepth 3 -print || true + - name: Upload logs (configure + build) + if: always() + uses: actions/upload-artifact@v4 + with: + name: logs-${{ matrix.vixos }}-${{ matrix.arch }} + path: logs/${{ matrix.vixos }}-${{ matrix.arch }}/* + if-no-files-found: warn + # ------------------------- # Configure + Build (Windows) # ------------------------- @@ -299,6 +299,14 @@ jobs: if (Test-Path "cmake_output.log") { Copy-Item "cmake_output.log" $out -Force } if (Test-Path "build_output.log") { Copy-Item "build_output.log" $out -Force } + - name: Upload logs (configure + build) + if: always() + uses: actions/upload-artifact@v4 + with: + name: logs-${{ matrix.vixos }}-${{ matrix.arch }} + path: logs/${{ matrix.vixos }}-${{ matrix.arch }}/* + if-no-files-found: warn + # ------------------------- # Package artifact # -------------------------