File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,15 @@ jobs:
2121 uses : actions/setup-go@v5
2222 with :
2323 go-version : ' 1.20'
24- - name : Setup MSVC environment
25- uses : ilammy/msvc-dev-cmd@v1
26- with :
27- arch : x64
2824 - name : Run Example Code
29- env :
30- CGO_ENABLED : 1
31- CC : cl.exe
32- CXX : cl.exe
33- PATH : ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
3425 run : |
35- echo "Current dir: $(Get-Location)"
26+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
27+ set CGO_ENABLED=1
28+ set CC=cl.exe
29+ set CXX=cl.exe
30+ set PATH=%CD%\lib\win_x86_64;%PATH%
31+ echo "Current dir: $(pwd)"
3632 dir "${{ github.workspace }}/lib/win_x86_64"
3733 cd samples
3834 go run .
39- shell : powershell
35+ shell : cmd
You can’t perform that action at this time.
0 commit comments