From 9a932a62d05192eae18ca370155cf877eecc2202 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 11 Nov 2021 16:53:45 +0300 Subject: verify VSCMD_ARG_TGT_ARCH --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.github/workflows') 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") -- cgit v1.2.3