Skip to content

Commit

Permalink
[test] fix Github Actions for clang and gcc in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamPast committed Dec 21, 2024
1 parent 3a370cc commit a900e6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test_cxx20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- build_type: MinSizeRel
os: windows-latest
compiler: [cl, cl]
env:
proj_type: ${{ (matrix.os == 'windows-latest' && matrix.compiler[0] != 'cl') && '-G "MinGW Makefiles"' || '' }}

steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +41,8 @@ jobs:
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: configure CMake
run: >
cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }}
cmake ${{ env.proj_type }}
-B ${{ github.workspace }}/build -S ${{ github.workspace }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_C_COMPILER=${{ matrix.compiler[0] }}
-DCMAKE_CXX_COMPILER=${{ matrix.compiler[1] }}
Expand Down

0 comments on commit a900e6c

Please sign in to comment.