From 7c98a5301e1dd2b153f9721167edf3d8706809c4 Mon Sep 17 00:00:00 2001 From: Anders Langlands Date: Sun, 19 Jan 2025 10:23:48 +1300 Subject: [PATCH] Update build-and-test.yml --- .github/workflows/build-and-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7b78b7b..d09c29c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -60,13 +60,19 @@ jobs: # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type working-directory: ${{ github.workspace }} run: > - cmake -B build -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_PREFIX_PATH=${{ steps.deps.outputs.llvm-dir }} + cmake -B build -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_PREFIX_PATH=${{ steps.deps.outputs.llvm-dir }} -DCMAKE_INSTALL_PREFIX=dist - name: Build working-directory: ${{ github.workspace }} # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: cmake --build build --config ${{ matrix.build_type }} + run: cmake --build build --config ${{ matrix.build_type }} --target install - name: Test working-directory: ${{ github.workspace }} run: python ./run_tests.py + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: babble + path: dist