Link statically #147
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: 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: Install requirements on ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libblas-dev liblapack-dev zlib1g-dev libmetis-dev | |
- name: Install requirements on macos | |
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14' | |
run: | | |
brew install gcc | |
brew info gcc | |
- name: Test bundled (if not mac) | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' | |
run: | | |
cargo b --features bundled,static | |
cargo t --features bundled,static create | |
cargo t --features bundled,static --examples | |
- name: Test bundled (if mac) | |
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14' | |
run: | | |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14 | |
cargo b --features bundled,static --no-default-features | |
cargo t --features bundled,static create | |
cargo t --features bundled,static --examples | |
from-source-test: | |
strategy: | |
matrix: | |
os: [ | |
macos-latest, | |
macos-14, | |
ubuntu-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 | |
- name: Test from-source | |
run: | | |
cargo b --features from-source -vv | |
cargo t --features from-source create | |
cargo t --features from-source --examples | |
# TODO: fix this, needs tbb | |
# windows-from-source: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Test from-source | |
# run: | | |
# echo "${{ runner.workspace }}/vcpkg" >> $GITHUB_PATH | |
# cargo b --features from-source -vv | |
# cargo t --features from-source create | |
# cargo t --features from-source --examples |