Binaries Win32 (VS) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Binaries Win32 (VS) | |
on: | |
workflow_dispatch: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} | |
steps: | |
- name: Find VS | |
shell: pwsh | |
run: | | |
$installationPath = Get-VSSetupInstance ` | |
| Select-VSSetupInstance -Require Microsoft.VisualStudio.Workload.NativeDesktop -Latest ` | |
| Select-Object -ExpandProperty InstallationPath | |
Write-Output "VSDEVCMD=${installationPath}\Common7\Tools\VsDevCmd.bat" ` | |
| Out-File -FilePath "${Env:GITHUB_ENV}" -Append | |
cat "${Env:GITHUB_ENV}" | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Compile mew | |
shell: pwsh | |
run: | | |
& "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" ` | |
| % { , ($_ -Split '=', 2) } ` | |
| % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) } | |
cd .\microemacs\src\ | |
.\build -t w | |