St/wip #176
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: CI Test | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ 3.9 }} | |
- name: Conda install clingo | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingo==5.6.2 | |
- name: Conda install clingo-dl | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingo-dl==1.4.0 | |
- name: Conda install clingcon | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingcon==5.2.0 | |
- name: Build | |
run: | | |
export CLINGO_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib | |
export CLINGO_DL_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib | |
export CLINGCON_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib | |
cargo build --verbose | |
- name: Run tests | |
run: | | |
export LD_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib | |
cargo test --verbose | |
build-macos: | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ 3.9 }} | |
- name: Conda install clingo | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingo==5.6.2 | |
- name: Conda install clingo-dl | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingo-dl==1.4.0 | |
- name: Conda install clingcon | |
shell: bash -l {0} | |
run: | | |
conda install -c potassco clingcon==5.2.0 | |
- name: Build | |
run: | | |
export CLINGO_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib | |
export CLINGO_DL_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib | |
export CLINGCON_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib | |
cargo build --verbose | |
- name: Run tests | |
run: | | |
export DYLD_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib | |
cargo test --verbose |