From 6695dfda914fdf0c6b515fd2e2a7818dac77e464 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Mon, 11 Mar 2024 16:39:32 +0800 Subject: [PATCH] Update cmake-multi-platform.yml Signed-off-by: Andy Zhang --- .github/workflows/cmake-multi-platform.yml | 27 ++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 6b70a412a..fc966893d 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -36,12 +36,12 @@ 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 @@ -49,8 +49,8 @@ jobs: 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 @@ -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/upload-artifact@v4.3.1 + 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 }} +