From d421055bc852e6881de6c2bf1db08ba708d521b5 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Sat, 30 Sep 2023 10:31:14 -0300 Subject: [PATCH] add artifact upload --- .github/workflows/cmake-multi-platform.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index ba1d400..ef3a51e 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -73,3 +73,14 @@ jobs: # 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: Package + working-directory: ${{ steps.strings.outputs.build-output-dir }} + # 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: cpack --build-config ${{ matrix.build_type }} + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + path: '*.(tar.gz|zip)' \ No newline at end of file