From: Kevin Albertson Date: Tue, 20 May 2025 00:03:39 +0000 (-0400) Subject: use `runner.os` X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~10^2^2~29^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca7057e59d578da411e82ca7c19662b54aac384a;p=utf8proc.git use `runner.os` To allows future Windows additions to the test matrix. Co-authored-by: Sutou Kouhei --- diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 7139f6e..db6262e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -34,7 +34,7 @@ jobs: build/libutf8proc.* build/Debug/utf8proc.* - name: Test Consuming (Windows) - if: ${{ matrix.os == 'windows-latest' }} + if: runner.os = 'Windows' run: | cmake --install build --prefix tmp/install --config Debug cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install @@ -42,7 +42,7 @@ jobs: $Env:PATH = "$PWD\tmp\install\bin;$Env:PATH" test/app/build/Debug/app.exe - name: Test Consuming (Unix) - if: ${{ matrix.os != 'windows-latest' }} + if: runner.os != 'Windows' run: | cmake --install build --prefix tmp/install cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install