Skip to content

Commit 49afc7d

Browse files
committed
ISSUE-CELLSGO-210: Contunie to try github action on window: Finally recommend the complete job.
1 parent 0d5b330 commit 49afc7d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/cellsbuild2run.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)