From 2286fa6d7f176ca1869127499c435e37ef5954b0 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:35:12 -0500 Subject: [PATCH] fix print software version for cl --- .github/workflows/ci_tests.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 35bf23d..627e286 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -104,10 +104,18 @@ jobs: with: arch: x64 - name: Print installed softwares + shell: bash run: | echo "Compiler:" - ${{ matrix.platform.cpp }} --version - ${{ matrix.platform.c }} --version + + # cl does not have a --version option + if [ "${{ matrix.platform.cpp }}" != "cl" ]; then + ${{ matrix.platform.cpp }} --version + ${{ matrix.platform.c }} --version + else + ${{ matrix.platform.cpp }} + ${{ matrix.platform.c }} + fi echo "Build system:" cmake --version