Minor spacing fix; clarify rsParElec and rsParFuel documentation #2094
Workflow file for this run
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: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows | |
os_ver: "2022" | |
config: Release | |
arch: "32" | |
compiler: msvc | |
experimental: false | |
- os: windows | |
os_ver: "2022" | |
config: Release | |
arch: "64" | |
compiler: msvc | |
experimental: false | |
# - os: windows | |
# os_ver: "2022" | |
# config: Release | |
# arch: "64" | |
# compiler: clang | |
# experimental: true | |
- os: macos | |
os_ver: "13" | |
config: Release | |
arch: "64" | |
compiler: clang | |
experimental: true | |
# - os: ubuntu | |
# os_ver: "22.04" | |
# config: Release | |
# arch: "64" | |
# compiler: gcc | |
# experimental: true | |
defaults: | |
run: | |
shell: bash | |
name: ${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.compiler }}-${{ matrix.arch }}bit ${{ matrix.config }} | |
runs-on: ${{ matrix.os }}-${{ matrix.os_ver }} | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Get number of CPU cores # Can replace when CMake is upgraded to 3.29 | |
uses: SimenB/github-actions-cpu-cores@v2 | |
id: cpu-cores | |
- name: Build CSE | |
uses: ./.github/actions/build-cse | |
with: | |
arch: ${{ matrix.arch }} | |
config: ${{ matrix.config }} | |
compiler: ${{ matrix.compiler }} | |
- name: Build cse_tests.exe (unit tests) | |
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCONFIGURATION=${{ matrix.config }} -DTARGET_NAME=cse_tests -DBUILD_DIRECTORY=build -P cmake/build.cmake | |
- name: Upload executable artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CSE_${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}bit_${{ matrix.config }} | |
path: | | |
build/CSE* | |
build/cse* | |
- name: Build wcmp executable | |
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCONFIGURATION=${{ matrix.config }} -DTARGET_NAME=wcmp -DBUILD_DIRECTORY=build -P cmake/build.cmake | |
# - name: Setup Mesa3D | |
# uses: bigladder/github-actions/setup-mesa3d@main | |
# with: | |
# install-directory: msvc | |
- name: Test | |
id: test | |
run: ctest -C ${{ matrix.config }} -j ${{ steps.cpu-cores.outputs.count }} --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: build | |
continue-on-error: true | |
- name: Upload report files artifact | |
if: steps.test.outcome == 'failure' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Reports-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}bit_${{ matrix.config }} | |
path: | | |
test/*.rep | |
test/*.REP | |
- name: Check test failure | |
if: steps.test.outcome == 'failure' | |
run: exit 1 | |
build-doc: | |
strategy: | |
fail-fast: false | |
name: Build CSE documentation | |
needs: build-cse | |
if: ${{ always() }} | |
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 | |
env: | |
CSE_EXE_PATH: ..\\build\\CSE.exe | |
- name: Upload documentation | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Documentation | |
path: | | |
doc/output | |
!doc/output/.git |