Merge pull request #474 from cse-sim/vchp-fixes #1873
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: push | |
jobs: | |
build-cse: | |
name: Build and test CSE | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Build CSE | |
uses: ./.github/actions/build-cse | |
- name: Build cse_tests.exe (unit tests) | |
run: cmake --build . --config Release --target cse_tests | |
working-directory: msvc/build | |
- name: Upload cse.exe artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CSE.exe | |
path: msvc/CSE.exe | |
- name: Build wcmp executable | |
run: cmake --build . --config Release --target wcmp | |
working-directory: msvc/build | |
# - name: Setup Mesa3D | |
# uses: bigladder/github-actions/setup-mesa3d@main | |
# with: | |
# install-directory: msvc | |
- name: Test | |
run: ctest -C Release -j 2 --output-on-failure -E shadetest # CI can't do GPU calcs at this time (the steps above get us close, but throws an exception on destruction) | |
working-directory: msvc/build | |
build-doc: | |
name: Build CSE documentation | |
needs: build-cse | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: cmake -P cmake/configure.cmake | |
- name: Download CSE artifact | |
uses: ./.github/actions/download-cse-artifact | |
- name: Build docs | |
uses: ./.github/actions/build-docs | |
- name: Run coverage check | |
run: rake coverage | |
working-directory: doc | |
- name: Upload documentation | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Documentation | |
path: | | |
doc/output | |
!doc/output/.git |