-
Notifications
You must be signed in to change notification settings - Fork 145
89 lines (79 loc) · 2.54 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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@17 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