-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for Windows MSVC2019, MSVC2022, and SDE 32/64-bit (#1228)
This creates a CI dimension for Windows 32 and 64 bit SDE. Windows scripts were refactored to be more generic as well. We test Windows SDE with the MSVC2019 build since Windows 11 has phased out some of the more ancient processors. The SHA256 dispatch test fails on the Debug build with newer processors when building for 32-bit. I've tweaked the assumption for the dispatch test and punted CryptoAlg-2137 to investigate the actual reason. Curiously enough, this isn't an issue on the release build. I also discovered how to properly build with MSVC2019 and MSVC2022 while working on this, so I added CI for the two compilers as well. I tested all dimensions against appropriate instance sizes. SDE tests take 90ish minutes to finish on 32 cores. We try to fit our CI within 1 hour, so I went with the next largest instance (64 cores) for the SDE simulator tests. Github provided Windows instances only have 2 cores and aren't sufficient enough for our regular Windows tests. The next larger instance was 8 cores, so I went with that.
- Loading branch information
1 parent
a8b2a0c
commit 265984e
Showing
9 changed files
with
171 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Windows Tests | ||
on: | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GOPROXY: https://proxy.golang.org,direct | ||
SDE_MIRROR_URL: "https://downloadmirror.intel.com/777395/sde-external-9.21.1-2023-04-24-win.tar.xz" | ||
SDE_VERSION_TAG: sde-external-9.21.1-2023-04-24-win | ||
|
||
jobs: | ||
MSVC-2019: | ||
runs-on: temporary-performance-testing_windows-2019_8-core | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v3 | ||
- name: Build Windows Dependencies | ||
run: | | ||
choco install ninja --version 1.9.0.20190208 -y && | ||
choco install nasm --version 2.14.02 -y | ||
- name: Run Windows Tests on MSVC-2019 | ||
run: | | ||
.\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 | ||
MSVC-2022: | ||
runs-on: temporary-performance-testing_windows-latest_8-core | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v3 | ||
- name: Build Windows Dependencies | ||
run: | | ||
choco install ninja --version 1.9.0.20190208 -y && | ||
choco install nasm --version 2.14.02 -y | ||
- name: Run Windows Tests on MSVC-2022 | ||
run: | | ||
.\tests\ci\run_windows_tests.bat "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | ||
SDE-64-bit: | ||
# TODO: Update this to run on windows-2022. windows-2022 (Windows 11) has phased out support for older processors. | ||
# https://learn.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-intel-processors | ||
runs-on: temporary-performance-testing_windows-2019_64-core | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Windows Dependencies | ||
run: | | ||
choco install ninja --version 1.9.0.20190208 -y && | ||
choco install nasm --version 2.14.02 -y | ||
- name: Install SDE simulator | ||
run: | | ||
curl -SL --output temp.tar.xz ${{ env.SDE_MIRROR_URL }} | ||
7z x temp.tar.xz | ||
7z x temp.tar | ||
ren ${{ env.SDE_VERSION_TAG }} windows-sde | ||
del temp.tar.xz | ||
del temp.tar | ||
- name: Run Windows SDE Tests for 64 bit | ||
run: | | ||
$env:SDEROOT = "${PWD}\windows-sde" | ||
echo ${env:SDEROOT} | ||
.\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 true | ||
SDE-32-bit: | ||
runs-on: temporary-performance-testing_windows-2019_64-core | ||
steps: | ||
- name: Git clone the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Windows Dependencies | ||
run: | | ||
choco install ninja --version 1.9.0.20190208 -y && | ||
choco install nasm --version 2.14.02 -y | ||
- name: Install SDE simulator | ||
run: | | ||
curl -SL --output temp.tar.xz ${{ env.SDE_MIRROR_URL }} | ||
7z x temp.tar.xz | ||
7z x temp.tar | ||
ren ${{ env.SDE_VERSION_TAG }} windows-sde | ||
del temp.tar.xz | ||
del temp.tar | ||
- name: Run Windows SDE Tests for 32 bit | ||
run: | | ||
$env:SDEROOT = "${PWD}\windows-sde" | ||
echo ${env:SDEROOT} | ||
.\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 true | ||
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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