Skip to content

Update documentation links. #2321

Update documentation links.

Update documentation links. #2321

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: Setup Mesa3D
# uses: bigladder/github-actions/setup-mesa3d@main
# with:
# install-directory: msvc
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: Build CSE
run: cmake -DBUILD_ARCHITECTURE=${{ matrix.arch }} -DCOMPILER_ID=${{ matrix.compiler }} -DCONFIGURATION=${{ matrix.config }} -DBUILD_DIRECTORY=build -DBUILD_DOCS_WITH_ALL=ON -P cmake/configure-and-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: 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: Upload documentation
uses: actions/upload-artifact@v4
with:
name: Documentation-${{ matrix.os }}-${{ matrix.os_ver }}-${{ matrix.arch }}
path: |
doc/build
- name: Check test failure
if: steps.test.outcome == 'failure'
run: exit 1