Skip to content

Commit 7a396c8

Browse files
gh-27: Fix ***another*** error in GH Actions workflow.
1 parent d406192 commit 7a396c8

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,11 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
1414

15-
- name: Setup Visual Studio
16-
uses: microsoft/setup-msbuild@v1.1
15+
- name: Setup MSVC
16+
uses: ilammy/msvc-dev-cmd@v1
1717

18-
- name: Build interpreter and extensions (Developer PowerShell)
19-
shell: powershell
20-
run: |
21-
$vswhere = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
22-
if (-not (Test-Path $vswhere)) { Write-Error "vswhere not found at $vswhere"; exit 1 }
23-
$inst = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
24-
if (-not $inst) { Write-Error 'Visual Studio installation not found'; exit 1 }
25-
$vsDevCmd = Join-Path $inst 'Common7\Tools\VsDevCmd.bat'
26-
if (-not (Test-Path $vsDevCmd)) { Write-Error "VsDevCmd.bat not found: $vsDevCmd"; exit 1 }
27-
cmd /c "`"$vsDevCmd`" -noLogo && powershell -NoProfile -ExecutionPolicy Bypass -File .\build.ps1"
18+
- name: Build interpreter and extensions
19+
run: .\build.ps1
2820

29-
- name: Run tests (Developer PowerShell)
30-
shell: powershell
31-
run: |
32-
$vswhere = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
33-
if (-not (Test-Path $vswhere)) { Write-Error "vswhere not found at $vswhere"; exit 1 }
34-
$inst = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
35-
if (-not $inst) { Write-Error 'Visual Studio installation not found'; exit 1 }
36-
$vsDevCmd = Join-Path $inst 'Common7\Tools\VsDevCmd.bat'
37-
if (-not (Test-Path $vsDevCmd)) { Write-Error "VsDevCmd.bat not found: $vsDevCmd"; exit 1 }
38-
cmd /c "`"$vsDevCmd`" -noLogo && .\prefix.exe .\tests\test2.pre"
21+
- name: Run tests
22+
run: .\prefix.exe .\tests\test2.pre

0 commit comments

Comments
 (0)