-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test without TPLs to run CI with the address sanitizer enabled --------- Co-authored-by: Cody Balos <[email protected]>
- Loading branch information
Showing
4 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
name: Build and Test - Ubuntu/gcc (Address Sanitizer) | ||
|
||
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: | ||
sanitizer_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] | ||
precision: ['double'] | ||
buildtype: ['Debug'] | ||
# Address sanitizer is enabled in test_driver.sh with TPLs OFF | ||
tpls: ['OFF'] | ||
|
||
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 }} | ||
tpls: ${{ matrix.tpls }} | ||
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/ |
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
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