Skip to content

Commit

Permalink
gh-actions uses powershell goddamit
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL authored Aug 9, 2024
1 parent 2c56e22 commit 6171cd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6171cd6

Please sign in to comment.