Skip to content

Adjust ci script

Adjust ci script #150

Workflow file for this run

name: CI tests

Check failure on line 1 in .github/workflows/test-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-ci.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on: [push]
jobs:
build:
name: clingo ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7']
include:
- os: 'ubuntu-latest'
env_file: '.github/tests/linux-env.yml'
- os: 'macos-latest'
env_file: '.github/tests/macos-env.yml'
- os: 'windows-latest'
env_file: '.github/tests/windows-env.yml'
# linux:
# runs-on: "ubuntu-latest"
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
# - name: Conda install clingo
# shell: bash -l {0}
# run: |
# conda install -c potassco clingo=5.6.2
# - name: Build
# run: |
# export CLINGO_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib
# cargo build --features=derive --verbose
# - name: Run tests
# run: |
# export CLINGO_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib
# export LD_LIBRARY_PATH=/usr/share/miniconda/envs/test/lib
# cargo test --features=derive --verbose
# macos:
# runs-on: "macos-latest"
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
# - name: Conda install clingo
# shell: bash -l {0}
# run: |
# conda install -c potassco clingo=5.6.2
# - name: Build
# run: |
# export CLINGO_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib
# cargo build --features=derive --verbose
# - name: Run tests
# run: |
# export CLINGO_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib
# export DYLD_LIBRARY_PATH=/usr/local/miniconda/envs/test/lib
# cargo test --features=derive --verbose
# windows:
# runs-on: "windows-latest"
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
# - name: Conda install clingo
# run: |
# conda install -c potassco clingo=5.6.2
# - name: Build
# env:
# CLINGO_LIBRARY_PATH: C:\Miniconda\envs\test\Library\lib
# run: |
# cargo build --features=derive --verbose
# - name: Run tests
# env:
# CLINGO_LIBRARY_PATH: C:\Miniconda\envs\test\Library\lib
# LD_LIBRARY_PATH: C:\Miniconda\envs\test\Library\lib;C:\Miniconda\envs\test\Lib
# run: |
# cargo test --features=derive --verbose
linux-static:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
activate-environment: clingo
python-version: ${{ matrix.python-version }}
environment-file: ${{ matrix.env_file }}
# - name: Install bison
# run: sudo apt-get install bison
# - name: Install re2c
# run: sudo apt-get install re2c
- name: Checkout clingo-sys branch test-clingo-wip
run: |
git clone https://github.com/potassco/clingo-sys.git ./clingo-sys
cd clingo-sys
git checkout st/test-clingo-wip
git submodule update --init --recursive
cd clingo
git checkout wip
- name: Build
run: cargo build --features=static-linking,derive --verbose
- name: Run tests
run: |
cargo test --features=static-linking,derive --verbose
./target/debug/examples/test
macos-static:
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
run: |
brew update
brew install bison@2.7
brew install re2c
- name: Checkout clingo-sys branch test-clingo-wip
run: |
git clone https://github.com/potassco/clingo-sys.git ./clingo-sys
cd clingo-sys
git checkout st/test-clingo-wip
git submodule update --init --recursive
cd clingo
git checkout wip
- name: Build
run: |
export PATH="/usr/local/opt/bison@2.7/bin:$PATH"
cargo build --features=static-linking,derive --verbose
- name: Run tests
run: |
export PATH="/usr/local/opt/bison@2.7/bin:$PATH"
cargo test --features=static-linking,derive --verbose
./target/debug/examples/test
windows-static:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v2
with:
activate-environment: clingo
python-version: ${{ matrix.python-version }}
environment-file: ${{ matrix.env_file }}
# - name: Install bison
# run: choco install winflexbison
# - name: Install re2c
# run: choco install re2c
- name: Checkout clingo-sys branch test-clingo-wip
run: |
git clone https://github.com/potassco/clingo-sys.git ./clingo-sys
cd clingo-sys
git checkout st/test-clingo-wip
git submodule update --init --recursive
cd clingo
git checkout wip
- name: Build
run: cargo build --features static-linking,derive -vv
- name: Run tests
run: |
cargo test --features static-linking,derive --verbose
./target/debug/examples/test