Skip to content

Commit

Permalink
ubuntu sanitizers workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Sep 17, 2024
1 parent bd73575 commit 785f149
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/sanitizers-cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: sanitizers-cmake
on: push

jobs:
sanitizer_release:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
sanitizer: [Address, Thread, Leak]
steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake and Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG_MEMORY=${{ matrix.sanitizer }}
cmake --build . --parallel
- name: Run
working-directory: ${{runner.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps

sanitizer_debug:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
sanitizer: [Address, Thread, Leak]
steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake and Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MEMORY=${{ matrix.sanitizer }}
cmake --build . --parallel
- name: Run
working-directory: ${{runner.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
File renamed without changes.

0 comments on commit 785f149

Please sign in to comment.