diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-11 16:53:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-11 16:58:30 +0300 |
commit | 9a932a62d05192eae18ca370155cf877eecc2202 (patch) | |
tree | b51ecac48c987e2bfe82ce13ce0ebb5648ba94ed /.github/workflows/test.yml | |
parent | README: update (diff) | |
download | vs-shell-2.tar.gz vs-shell-2.zip |
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/test.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0184ae..e9dc522 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,11 @@ jobs: - {os: windows-2019, name: VS 2019} - {os: windows-2022, name: VS 2022} + # Expected VSCMD_ARG_TGT_ARCH value. + - {arch: x86, expected_arch: x86} + - {arch: Win32, expected_arch: x86} + - {arch: x64, expected_arch: x64} + runs-on: '${{ matrix.os }}' name: '${{ matrix.name }} / ${{ matrix.arch }}' @@ -53,3 +58,9 @@ jobs: run: | cl.exe /EHsc foo.cpp .\foo.exe + + - name: Verify target architecture + run: | + $actual = $env:VSCMD_ARG_TGT_ARCH + $expected = '${{ matrix.expected_arch }}' + $($expected -eq $actual) -or $(throw "Unexpected target architecture: $actual") |