Skip to content

Update Julia CI job to use libblastrampoline and remove --parallel=false #4961

Update Julia CI job to use libblastrampoline and remove --parallel=false

Update Julia CI job to use libblastrampoline and remove --parallel=false #4961

name: sanitizers-cmake
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gcc_relwithdebinfo:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sanitizer: [Address, Thread, Leak]
steps:
- uses: actions/checkout@v6
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake and Build
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build . -j2
- name: Run
working-directory: ${{github.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
gcc_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@v6
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake and Build
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build . -j2
- name: Run
working-directory: ${{github.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
clang_relwithdebinfo:
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@v6
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake and Build
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build . -j2
- name: Run
working-directory: ${{github.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
clang_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@v6
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake and Build
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MEMORY=${{ matrix.sanitizer }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build . -j2
- name: Run
working-directory: ${{github.workspace}}/build
shell: bash
run: ./bin/highs $GITHUB_WORKSPACE/check/instances/afiro.mps
hipo:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
config: [Debug]
all_tests: [ON]
sanitizer: [Address, Thread, Leak]
steps:
- uses: actions/checkout@v6
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: |
cmake $GITHUB_WORKSPACE -DHIPO=ON -DBUILD_OPENBLAS=ON \
-DALL_TESTS=${{ matrix.all_tests }} \
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
-DDEBUG_MEMORY=${{ matrix.sanitizer }} \
-DNO_AVX512=ON \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
- name: Build
working-directory: ${{github.workspace}}/build
run: |
cmake --build . -j2
- name: Test executable
working-directory: ${{github.workspace}}/build
run: ./bin/highs --solver=hipo $GITHUB_WORKSPACE/check/instances/afiro.mps
- name: Test hipo
working-directory: ${{github.workspace}}/build
run: |
./bin/unit_tests [highs_hipo]