Skip to content

Function cells

Function cells #909

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: ${{ matrix.build }} / ${{ matrix.os }} / ${{ matrix.mode }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
build:
- clasp
- cando
os:
- macos-latest
- ubuntu-22.04
mode:
- bytecode
- faso
runs-on: ${{ matrix.os }}
steps:
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt install -y binutils-gold clang-15 libclang-15-dev libclang-cpp15-dev llvm-15 llvm-15-dev libelf-dev libgmp-dev libunwind-dev ninja-build sbcl libnetcdf-dev libexpat1-dev libfmt-dev libboost-all-dev
- name: Install MacOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew update
brew upgrade
brew install boost fmt gmp llvm@15 ninja pkg-config sbcl ecl netcdf expat
- name: Checkout repository
uses: actions/checkout@v4
- uses: conda-incubator/[email protected]
if: matrix.build == 'cando'
- name: Install AmberTools
if: matrix.build == 'cando'
run: |
conda install -c conda-forge ambertools
- name: Clasp koga @ Ubuntu
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.build == 'clasp' }}
run: |
./koga --build-mode=${{ matrix.mode }}
- name: Cando koga @ Ubuntu
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.build == 'cando' }}
run: |
./koga --build-mode=${{ matrix.mode }} --extensions=cando,seqan-clasp
- name: Clasp koga @ MacOS
if: ${{ matrix.os == 'macos-latest' && matrix.build == 'clasp' }}
run: |
./koga --build-mode=${{ matrix.mode }} --llvm-config=/usr/local/opt/llvm@15/bin/llvm-config
- name: Cando koga @ MacOS
if: ${{ matrix.os == 'macos-latest' && matrix.build == 'cando' }}
run: |
./koga --build-mode=${{ matrix.mode }} --extensions=cando,seqan-clasp --llvm-config=/usr/local/opt/llvm@15/bin/llvm-config
- name: Build
run: |
ninja -C build
- name: Run regression tests
run: |
ninja -C build test
- name: Run ANSI tests
if: ${{ matrix.build == 'clasp' }}
run: |
ninja -C build ansi-test
- name: Run ASDF tests
if: ${{ matrix.build == 'clasp' }}
run: |
ninja -C build asdf-test
- name: Run Cando regression tests
if: ${{ matrix.build == 'cando' }}
run: |
ninja -C build cando-test