Skip to content

Commit b198aa4

Browse files
committed
Setup Windows Developer Command Prompt in CI workflows
1 parent 638bae2 commit b198aa4

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/md5checker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ jobs:
9999
with:
100100
crystal: latest
101101

102-
- name: Add Windows SDK to PATH
103-
run: echo "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64" >> $env:GITHUB_PATH
102+
- name: Setup Windows Developer Command Prompt
103+
uses: ilammy/msvc-dev-cmd@v1
104+
with:
105+
arch: x64
104106

105107
- name: Install Inno Setup
106108
run: |

.github/workflows/screenshot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
sudo apt-get update -y
4545
sudo apt-get install -y libgtk-3-dev xvfb imagemagick xdotool openbox wmctrl
4646
47-
- name: Setup Windows SDK
47+
- name: Setup Windows Developer Command Prompt
4848
if: matrix.os == 'windows'
49-
run: echo "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64" >> $env:GITHUB_PATH
49+
uses: ilammy/msvc-dev-cmd@v1
50+
with:
51+
arch: x64
5052

5153
- name: Install Crystal dependencies
5254
run: shards install

0 commit comments

Comments
 (0)