Skip to content

Update to scip 9.2 #169

Update to scip 9.2

Update to scip 9.2 #169

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
bundled-test:
strategy:
matrix:
os: [
ubuntu-latest,
macos-latest,
macos-14, # macOS arm runner
windows-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Test bundled
run: |
cargo b --features bundled -vv
cargo t --features bundled create
cargo t --features bundled --examples
from-source-test:
strategy:
matrix:
os: [
macos-latest,
macos-14,
ubuntu-latest,
windows-latest,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install bison
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}
run: |
brew install bison gcc
- name: Test from-source
run: |
cargo b --features from-source -vv
cargo t --features from-source create
cargo t --features from-source --examples
linux-conda-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
allow-softlinks: true
- name: Install dependencies (SCIPOptSuite)
run: |
conda install -y --prefix $CONDA/envs/test --channel conda-forge scip
echo "LD_LIBRARY_PATH=$CONDA/envs/test/lib" >> "${GITHUB_ENV}"
echo "CONDA_PREFIX=$CONDA/envs/test" >> "${GITHUB_ENV}"
- name: Test
run: |
cargo b -vv
cargo t create
cargo t --examples
# from-source-linux-arm-test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
#
# - name: Set up QEMU for ARM64 emulation
# uses: docker/setup-qemu-action@v2
# with:
# platforms: arm64
#
# - name: Run test in ARM64 environment
# run: |
# docker run --rm --platform linux/arm64 \
# -v ${{ github.workspace }}:/workspace \
# -w /workspace \
# rust:latest /bin/bash -c "
# cargo build --features from-source -vv
# cargo test --features from-source create
# cargo test --features from-source --examples
# "