From 4b1ba258a501f42428372eb82e2b6702146d2324 Mon Sep 17 00:00:00 2001 From: goubermouche <71839692+Goubermouche@users.noreply.github.com> Date: Sun, 17 Dec 2023 19:10:05 +0100 Subject: [PATCH] Updated main.yml. --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5731dd66..bfc0935b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,8 @@ jobs: - name: Install Premake run: | - Invoke-WebRequest -Uri "https://github.com/premake/premake-core/releases/download/v5.0.0-alpha16/premake-5.0.0-alpha16-windows.zip" -OutFile "premake.zip" + # Update this URL if a newer version is available + Invoke-WebRequest -Uri "URL_TO_NEWER_VERSION_OF_PREMAKE" -OutFile "premake.zip" Expand-Archive "premake.zip" -DestinationPath "C:\tools" echo "C:\tools" | Out-File -Append -FilePath $env:GITHUB_PATH @@ -35,7 +36,10 @@ jobs: msbuild -version - name: Run Premake for Visual Studio - run: C:\tools\premake5.exe vs2022 + run: | + # Use an appropriate action here based on the Premake version + C:\tools\premake5.exe vs2019 # or vs2022 if the updated version supports it - name: Compile Project with MSBuild - run: msbuild sigma.sln /p:Configuration=Debug /p:Platform="x64" /p:stdcpp=latest + run: | + msbuild sigma.sln /p:Configuration=Debug /p:Platform="x64" /p:stdcpp=latest