aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-11-11 16:53:45 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-11-11 16:58:30 +0300
commit9a932a62d05192eae18ca370155cf877eecc2202 (patch)
treeb51ecac48c987e2bfe82ce13ce0ebb5648ba94ed /.github/workflows/test.yml
parentREADME: update (diff)
downloadvs-shell-9a932a62d05192eae18ca370155cf877eecc2202.tar.gz
vs-shell-9a932a62d05192eae18ca370155cf877eecc2202.zip
verify VSCMD_ARG_TGT_ARCHHEADv2.1v2master
Diffstat (limited to '')
-rw-r--r--.github/workflows/test.yml11
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")