Skip to content

Commit

Permalink
[gha] debug gh again and possibly fixed ?
Browse files Browse the repository at this point in the history
  • Loading branch information
oxy86 committed Dec 4, 2024
1 parent f7465bc commit 810ebd8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ jobs:
echo "📤 Uploading artifact to GitHub release..."
gh release upload continuous "./build/${{ env.LINUX_ARTIFACT }}" --repo "${{ github.repository }}" \
--clobber --title "${{ env.APP_NAME }} ${{env.VERSION}}" --content-type application/octet-stream
--clobber --content-type application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 325 in .github/workflows/build-ci.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

325:52 [trailing-spaces] trailing spaces

Expand Down Expand Up @@ -515,7 +515,7 @@ jobs:
echo "📤 Uploading artifact to GitHub release..."
gh release upload continuous "./build/${{ env.MAC_ARTIFACT }}" --repo "${{ github.repository }}" \
--clobber --title "${{ env.APP_NAME }} ${{env.VERSION}}" --content-type application/octet-stream
--clobber --content-type application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -560,14 +560,15 @@ jobs:
cmake -S . -B build
echo "🚧 🛠️ Compiling into build/ with 'cmake --build build -j${{env.CORES}} --config ${{env.CMAKE_CONFIG}}'. Please wait..."
cmake --build build -j${{env.CORES}} --config ${{env.CMAKE_CONFIG}} -v
echo "👉 Building finished. Listing directory build/ for verification: "
dir build
echo "👉 Building finished. Entering build/ and listing it for verification: "
cd build
dir
echo "🔧 Running windeployqt on built executable..."
windeployqt build\${{env.CMAKE_CONFIG}}\socnetv.exe
windeployqt ${{env.CMAKE_CONFIG}}\socnetv.exe
echo "🔧 Copying license file to build directory..."
copy COPYING build\${{env.CMAKE_CONFIG}}\LICENSE.txt
copy ..\COPYING ${{env.CMAKE_CONFIG}}\LICENSE.txt
if (!(Get-Command "iscc.exe" -ErrorAction SilentlyContinue)) {
echo "🔧 Installing Inno Setup..."
Expand All @@ -583,7 +584,7 @@ jobs:
iscc.exe /?

echo "🔧 Copying InnoSetup script..."
copy scripts\innosetup.iss build\innosetup.iss
copy ..\scripts\innosetup.iss innosetup.iss

echo "Updating RELEASEFOLDER in innosetup.iss with ${{env.CMAKE_CONFIG}}..."
$config = "${{env.CMAKE_CONFIG}}"
Expand All @@ -593,14 +594,14 @@ jobs:
type innosetup.iss

Check failure on line 595 in .github/workflows/build-ci.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

595:1 [trailing-spaces] trailing spaces
echo "🔧 Running Inno Setup to create installer..."
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "build\innosetup.iss"
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "innosetup.iss"

echo "👉 Checking output installer..."
dir build
dir

echo "🔧 Renaming installer..."
Get-ChildItem -Path "build\SocNetV-*installer.exe" | Move-Item -Destination "build\SocNetV-${{env.VERSION}}-windows-installer.exe"
dir build
Get-ChildItem -Path "SocNetV-*installer.exe" | Move-Item -Destination "SocNetV-${{env.VERSION}}-windows-installer.exe"
dir

echo "🎉 Windows build complete. Artifacts are ready!"

Expand Down

0 comments on commit 810ebd8

Please sign in to comment.