Skip to content

Commit

Permalink
Use matrix map with name/toolset pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasaav-dsv committed Apr 4, 2024
1 parent 568e036 commit ed75fb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: true
matrix:
build_type: [Release, Debug]
cl_toolset: [Visual Studio, ClangCL]
cl_toolset: [ {name: Visual Studio, id: v143}, {name: clang-cl, id: ClangCL} ]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:
cmake
-G "Visual Studio 17 2022"
-A x64
-T ${{ matrix.cl_toolset }}
-T ${{ matrix.cl_toolset.id }}
-S ${{ github.workspace }}
-B ${{ github.workspace }}/build
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: libER.dll ${{ matrix.cl_toolset }} ${{ matrix.build_type }}
name: libER.dll ${{ matrix.cl_toolset.name }} ${{ matrix.build_type }}
path: |
${{ github.workspace }}/build/${{ matrix.build_type }}/libER${{ matrix.build_type == 'Debug' && 'd' || '' }}.dll
${{ github.workspace }}/build/${{ matrix.build_type }}/libER${{ matrix.build_type == 'Debug' && 'd' || '' }}.exp
Expand All @@ -46,5 +46,5 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: libER_static.lib ${{ matrix.cl_toolset }} ${{ matrix.build_type }}
name: libER_static.lib ${{ matrix.cl_toolset.name }} ${{ matrix.build_type }}
path: ${{ github.workspace }}/build/${{ matrix.build_type }}/libER_static${{ matrix.build_type == 'Debug' && 'd' || '' }}.lib

0 comments on commit ed75fb9

Please sign in to comment.