Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL authored Aug 10, 2024
1 parent 6171cd6 commit 352f69f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 352f69f

Please sign in to comment.