update highs to v1.6.0, remove now unnecessary dependency to openmp #76
Workflow file for this run
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
name: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- os: ubuntu-latest | |
- os: macos-latest | |
- os: windows-latest | |
steps: | |
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797 | |
uses: KyleMayes/install-llvm-action@f8f2154d96f018dcb600739c4978bfc35f435422 | |
if: matrix.config.os == 'windows-latest' | |
with: | |
version: "11.0" | |
directory: ${{ runner.temp }}/llvm | |
- name: Set LIBCLANG_PATH | |
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | |
if: matrix.config.os == 'windows-latest' | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: install dependencies | |
run: ./install-dependencies.sh | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test | |
- name: Build with system-installed HiGHS | |
if: matrix.config.os != 'windows-latest' | |
run: | | |
cd HiGHS | |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
sudo cmake --install build | |
cd .. | |
cargo clean | |
cargo build --no-default-features --features "discover" |