v1.6.2 #87
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/[email protected] | |
if: matrix.config.os == 'windows-latest' | |
with: | |
version: "17" | |
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@v4 | |
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" |