From 5c7a0dd0a3c8dffbbdaf07b2ca553edba27190c8 Mon Sep 17 00:00:00 2001 From: Dimitris Kalamaras Date: Wed, 4 Dec 2024 03:18:48 +0200 Subject: [PATCH] [gha] debug gh windows etc --- .github/workflows/build-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 69f72bdf..677df6e6 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -307,10 +307,12 @@ jobs: exit 1 fi - - if: contains( matrix.os, 'ubuntu-20.04') && matrix.qt-version == '6.8.9' && env.LINUX_ARTIFACT != '' + - if: contains( matrix.os, 'ubuntu-20.04') && matrix.qt-version == '6.8.0' && env.LINUX_ARTIFACT != '' name: 📤 Upload ${{matrix.os}} build artifacts of ${{env.APP_NAME}} ${{ env.VERSION }} to GitHub ${{ env.UPLOAD_URL }} run: | echo "🔍 Verifying artifact: ${{ env.LINUX_ARTIFACT }}" + pwd + ls if [ ! -f "./${{ env.LINUX_ARTIFACT }}" ]; then echo "❌ Error: Artifact not found!" exit 1 @@ -504,6 +506,8 @@ jobs: name: 📤 Upload ${{matrix.os}} build artifacts of ${{env.APP_NAME}} ${{ env.VERSION }} to GitHub ${{ env.UPLOAD_URL }} run: | echo "🔍 Verifying artifact: ${{ env.MAC_ARTIFACT }}" + pwd + ls if [ ! -f "./${{ env.MAC_ARTIFACT }}" ]; then echo "❌ Error: Artifact not found!" exit 1 @@ -581,6 +585,12 @@ jobs: echo "🔧 Copying InnoSetup script..." copy scripts\innosetup.iss build\innosetup.iss + echo "Updating RELEASEFOLDER in innosetup.iss with ${{env.CMAKE_CONFIG}}..." + $config = "${{env.CMAKE_CONFIG}}" + (Get-Content innosetup.iss) -replace '#define RELEASEFOLDER "release\\\\"', "#define RELEASEFOLDER `"$config\\\\"`" | Set-Content innosetup.iss + echo "Updated innosetup.iss:" + type build\innosetup.iss + echo "🔧 Running Inno Setup to create installer..." & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "build\innosetup.iss"