Skip to content

Commit

Permalink
github: Test unpacking specific versions of MSVC and WinSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Jan 7, 2025
1 parent 87334ae commit 763b0d8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,49 @@ jobs:
run: |
ls "c:/msvc/Windows Kits/10/Include/*/um/winnt.h"
ls "c:/msvc/VC/Tools/MSVC/*/include/intrin.h"
test-msvc-wine-versions:
runs-on: ubuntu-latest
steps:
- name: Install prerequisites
run: |
sudo dpkg --add-architecture i386 && sudo apt-get update
sudo apt-get install wine64 wine32 python3 msitools ca-certificates winbind
wine64 wineboot
- uses: actions/checkout@v4
- name: Download MSVC 2017 latest
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 15
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc
- name: Download MSVC 2019 latest
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 16
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc
- name: Download MSVC 2017 specific version
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 15 --msvc-version 15.5
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc
- name: Download MSVC 2019 specific version
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 16 --msvc-version 16.0
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc
- name: Download MSVC 2022 specific version
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 17 --msvc-version 17.0
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc
- name: Download MSVC 2022 with non-default SDK
run: |
./vsdownload.py --accept-license --dest $(pwd)/msvc --major 17 --sdk-version 10.0.26100
./install.sh $(pwd)/msvc
./msvc/bin/x64/cl test/hello.c -Fehello.exe
rm -rf msvc

0 comments on commit 763b0d8

Please sign in to comment.