diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-12-23 22:43:43 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-12-23 22:43:43 +0300 |
commit | 96b59e5cdfcb5e21bdb1dfec22d21b72ef084b5b (patch) | |
tree | 3b2ac46c2e9acace4e9a97bb4e54d678d67be046 | |
parent | README: update (diff) | |
download | setup-cygwin-96b59e5cdfcb5e21bdb1dfec22d21b72ef084b5b.tar.gz setup-cygwin-96b59e5cdfcb5e21bdb1dfec22d21b72ef084b5b.zip |
workflows/test.yml: check %CYGWIN%
-rw-r--r-- | .github/workflows/test.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99c3ca7..13f5702 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: matrix: os: [windows-2019] platform: [x86, x64] + env: ['', 'winsymlinks:nativestrict'] include: - {os: windows-2019, name: Windows Server 2019} @@ -38,6 +39,7 @@ jobs: platform: '${{ matrix.platform }}' install-dir: C:\cg packages: cmake gcc + env: '${{ matrix.env }}' - name: Run bash run: | @@ -47,3 +49,8 @@ jobs: - name: Run cmake run: | C:\cg\bin\cmake.exe --version + + - name: Check CYGWIN environment variable + run: | + $(Test-Path env:CYGWIN) -or $(throw '%CYGWIN% is not set!') + $($env:CYGWIN -eq '${{ matrix.env }}') -or $(throw "Unexpected %CYGWIN% value: $env:CYGWIN") |