From 6171cd6f153958ed4d0603b63990f94044b89683 Mon Sep 17 00:00:00 2001 From: Nibir Sankar <68242099+moiSentineL@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:55:22 +0530 Subject: [PATCH] gh-actions uses powershell goddamit --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff3779a..cebfc45 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,8 +44,9 @@ jobs: - name: Compile (Windows) if: runner.os == 'Windows' run: | - call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - cl.exe /LD /Fe${{ matrix.output }} flomo/session_id.c + $vsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath + $vcvarsall = Join-Path $vsPath "VC\Auxiliary\Build\vcvarsall.bat" + cmd /c "call `"$vcvarsall`" x64 && cl.exe /LD /Fe${{ matrix.output }} flomo\session_id.c" - name: Upload artifact uses: actions/upload-artifact@v2