From 352f69ff00267c3387775f72d00eb6ea7eb8b520 Mon Sep 17 00:00:00 2001 From: Nibir Sankar <68242099+moiSentineL@users.noreply.github.com> Date: Sat, 10 Aug 2024 17:24:39 +0530 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cebfc45..937570d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,9 +44,11 @@ jobs: - name: Compile (Windows) if: runner.os == 'Windows' run: | - $vsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath + $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" + $vsPath = & $vswhere -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" + $compileCommand = "& '$vcvarsall' x64 && cl.exe /LD /Fe$($env:GITHUB_WORKSPACE)\${{ matrix.output }} $($env:GITHUB_WORKSPACE)\flomo\session_id.c" + cmd /c $compileCommand - name: Upload artifact uses: actions/upload-artifact@v2