Skip to content

Commit

Permalink
Update build-and-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslanglands authored Jan 18, 2025
1 parent 98a5ab1 commit 7c98a53
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c98a53

Please sign in to comment.