Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Zhang <[email protected]>
  • Loading branch information
ZCG-coder authored Mar 11, 2024
1 parent aa96f49 commit 6695dfd
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ jobs:
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
- os: macos-latest
c_compiler: gcc
cpp_compiler: g++
- os: macos-latest
c_compiler: clang
cpp_compiler: clang++
# - os: macos-latest
# c_compiler: gcc
# cpp_compiler: g++
# - os: macos-latest
# c_compiler: clang
# cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl
- os: macos-latest
c_compiler: cl
# - os: macos-latest
# c_compiler: cl

steps:
- uses: actions/checkout@v3
Expand All @@ -77,7 +77,16 @@ jobs:
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
working-directory: ${{ steps.strings.outputs.build-output-dir }}/tests
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: Build ${{ matrix.os }}-${{ matrix.cpp_compiler }}
# A file, directory or wildcard pattern that describes what to upload
path: ${{ steps.strings.outputs.build-output-dir }}

0 comments on commit 6695dfd

Please sign in to comment.