Add def.h to bindgen + solved deprecation warning
#208
This file contains hidden or 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: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| bundled-test: | |
| strategy: | |
| matrix: | |
| os: [ | |
| ubuntu-latest, | |
| macos-13, | |
| macos-14, # macOS arm runner | |
| windows-latest, | |
| ubuntu-24.04-arm | |
| ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Test bundled | |
| run: | | |
| cargo b --features bundled --release | |
| cargo t --features bundled --release create | |
| cargo t --features bundled --release --examples | |
| # bundled-debug-test: | |
| # strategy: | |
| # matrix: | |
| # os: [ | |
| # ubuntu-latest, | |
| # macos-13, | |
| # macos-14, # macOS arm runner | |
| # windows-latest, | |
| # ] | |
| # runs-on: ${{ matrix.os }} | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # - name: Test bundled | |
| # run: | | |
| # cargo b --features bundled | |
| # cargo t --features bundled create | |
| # cargo t --features bundled --examples | |
| from-source-test: | |
| strategy: | |
| matrix: | |
| os: [ | |
| macos-13, | |
| macos-14, | |
| ubuntu-latest, | |
| windows-latest, | |
| ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install bison | |
| if: ${{ matrix.os == 'macos-13' || 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-system-test: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| SCIP_VERSION: 9.2.4 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install SCIP from debian package | |
| run: | | |
| wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/v$(echo "${{ env.SCIP_VERSION }}" | tr -d '.')/SCIPOptSuite-${{ env.SCIP_VERSION }}-Linux-ubuntu22.deb | |
| sudo apt-get update | |
| sudo apt install -y ./SCIPOptSuite-${{ env.SCIP_VERSION }}-Linux-ubuntu22.deb | |
| - name: Verify SCIP headers are in standard locations | |
| run: | | |
| echo "Checking for headers in standard locations..." | |
| ls -la /usr/include/scip/ || echo "No headers in /usr/include/scip" | |
| ls -la /usr/local/include/scip/ || echo "No headers in /usr/local/include/scip" | |
| - name: Build and test (should find headers in system directories) | |
| run: | | |
| cargo b -vv | |
| cargo t create | |
| cargo t --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 | |
| # " |