From 18bdc46a8bd2ef12fb288eb7117cf1d0ee54288b Mon Sep 17 00:00:00 2001 From: Gaspard Kirira Date: Wed, 28 Jan 2026 09:18:49 +0300 Subject: [PATCH] ci(release): capture cmake_output.log on Windows configure --- .github/workflows/release.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e69938..477349d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,8 +135,8 @@ jobs: -DVIX_DB_USE_MYSQL=OFF -DVIX_CORE_WITH_MYSQL=OFF -DVIX_ENABLE_HTTP_COMPRESSION=OFF - -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE --log-level=VERBOSE + --debug-output ) if [ "${{ runner.os }}" = "Linux" ] && [ "${{ matrix.arch }}" = "aarch64" ]; then @@ -178,8 +178,8 @@ jobs: test -f cmake_output.log && tail -n 200 cmake_output.log || echo "missing" # Upload logs into a UNIQUE folder to avoid extraction collisions - - name: Collect logs - if: always() + - name: Collect logs (Unix) + if: always() && runner.os != 'Windows' shell: bash run: | set -euxo pipefail @@ -192,6 +192,21 @@ jobs: test -f build/CMakeFiles/CMakeConfigureLog.yaml && cp -f build/CMakeFiles/CMakeConfigureLog.yaml "$OUT/" || true find logs -type f -maxdepth 3 -print || true + - name: Collect logs (Windows) + if: always() && runner.os == 'Windows' + shell: pwsh + run: | + $out = "logs/${{ matrix.vixos }}-${{ matrix.arch }}" + New-Item -ItemType Directory -Force -Path $out | Out-Null + + if (Test-Path "cmake_output.log") { Copy-Item "cmake_output.log" $out -Force } + if (Test-Path "build/CMakeCache.txt") { Copy-Item "build/CMakeCache.txt" $out -Force } + if (Test-Path "build/CMakeFiles/CMakeError.log") { Copy-Item "build/CMakeFiles/CMakeError.log" $out -Force } + if (Test-Path "build/CMakeFiles/CMakeOutput.log") { Copy-Item "build/CMakeFiles/CMakeOutput.log" $out -Force } + if (Test-Path "build/CMakeFiles/CMakeConfigureLog.yaml") { Copy-Item "build/CMakeFiles/CMakeConfigureLog.yaml" $out -Force } + + Get-ChildItem -Recurse -Depth 3 logs | ForEach-Object { $_.FullName } + - name: Upload configure logs if: always() uses: actions/upload-artifact@v4 @@ -224,7 +239,7 @@ jobs: -DVIX_DB_USE_MYSQL=OFF ` -DVIX_CORE_WITH_MYSQL=OFF ` -DVIX_ENABLE_HTTP_COMPRESSION=OFF ` - -DOPENSSL_ROOT_DIR="$openssl" + -DOPENSSL_ROOT_DIR="$openssl" 2>&1 | Tee-Object -FilePath cmake_output.log - name: Build (Windows) if: runner.os == 'Windows'