Skip to content

Commit e3f7c08

Browse files
committed
[github] Update workflows on Windows to resolve visual studio env automatically.
1 parent 79c8214 commit e3f7c08

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ jobs:
77
runs-on: windows-latest
88
steps:
99
- uses: actions/checkout@v2
10+
- uses: ilammy/msvc-dev-cmd@v1
11+
with:
12+
arch: x64
1013
- name: Build
1114
shell: cmd
12-
run: |
13-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
15+
run: |
1416
./build.bat debug all
1517
1618
windows-release:
1719
runs-on: windows-latest
1820
steps:
1921
- uses: actions/checkout@v2
22+
- uses: ilammy/msvc-dev-cmd@v1
23+
with:
24+
arch: x64
2025
- name: Build
2126
shell: cmd
22-
run: |
23-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
27+
run: |
2428
./build.bat assert all
2529
2630
linux-debug:

.github/workflows/nightly.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
- uses: ilammy/msvc-dev-cmd@v1
14+
with:
15+
arch: x64
1316
- name: Build
1417
shell: cmd
15-
run: |
16-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
18+
run: |
1719
./build.bat release all
1820
- name: Prepare package
1921
shell: powershell
@@ -71,7 +73,7 @@ jobs:
7173
echo "CPATH=$TMP_PATH" >> $GITHUB_ENV
7274
- name: Build
7375
run: |
74-
./build.sh release all
76+
./build.sh release all
7577
- name: Prepare package
7678
run: |
7779
mkdir dist

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
runs-on: windows-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- uses: ilammy/msvc-dev-cmd@v1
13+
with:
14+
arch: x64
1215
- name: Build
1316
shell: cmd
1417
run: |
15-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
1618
./build.bat release all
1719
- name: Prepare package
1820
shell: powershell

0 commit comments

Comments
 (0)