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