Skip to content

Feature/sunadjoint #1245

Feature/sunadjoint

Feature/sunadjoint #1245

Workflow file for this run

#
name: Build and Test - Ubuntu/gcc (TPLs, no GPUs)
on:
push:
branches:
- main
- develop
pull_request:
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: ubuntu-latest
container:
image: ghcr.io/llnl/sundials-ci-int${{ matrix.indexsize }}-${{ matrix.precision }}:latest
options: --user root
strategy:
max-parallel: 2
matrix:
indexsize: [32, 64]
# Disable extended tests until compiler warnings are addressed
precision: ['single', 'double']
buildtype: ['Debug', 'Release', 'RelWithDebInfo']
exclude:
- buildtype: Debug
precision: single
# - buildtype: Debug
# precision: extended
- buildtype: Release
precision: single
# - buildtype: Release
# precision: extended
- buildtype: RelWithDebInfo
precision: double
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run test_driver.sh
uses: ./.github/actions/test-driver
with:
indexsize: ${{ matrix.indexsize }}
precision: ${{ matrix.precision }}
env:
CMAKE_BUILD_TYPE: ${{ matrix.buildtype }}
- name: Archive build files from failed build
uses: actions/upload-artifact@v4
if: failure()
with:
name: build_files
path: |
${{ github.workspace }}/test/build_*
!${{ github.workspace }}/test/build_*/Testing/output
- name: Archive output files from failed build
uses: actions/upload-artifact@v4
if: failure()
with:
name: output_files
path: |
${{ github.workspace }}/test/build_*/Testing/