-
Notifications
You must be signed in to change notification settings - Fork 41
57 lines (53 loc) · 2.42 KB
/
build.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
on: [ push, pull_request ]
name: Build
jobs:
build_and_test:
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [x86_64, aarch64]
cpu_instr: [non_SIMD, SSE2, AVX2, NEON]
steps:
- uses: actions/checkout@v3
- name: Build trimal for Linux x86_64
if: matrix.arch == 'x86_64' && matrix.cpu_instr == 'non_SIMD'
run: cmake . -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
- name: Build trimal for Linux x86_64 and SSE2
if: matrix.arch == 'x86_64' && matrix.cpu_instr == 'SSE2'
run: cmake . -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
- name: Build trimal for Linux x86_64 and AVX2
if: matrix.arch == 'x86_64' && matrix.cpu_instr == 'AVX2'
run: cmake . -DDISABLE_SSE2=1 && make && file bin/trimal && file bin/readal &&
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
- name: Build trimal for Linux aarch64
if: matrix.arch == 'aarch64' && matrix.cpu_instr == 'non_SIMD'
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/trimal"
install: |
apt-get update -q -y
apt-get install -q -y cmake make g++ file
run: |
cmake . -DDISABLE_NEON=1 -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh
- name: Build trimal for Linux aarch64 and NEON
if: matrix.arch == 'aarch64' && matrix.cpu_instr == 'NEON'
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/trimal"
install: |
apt-get update -q -y
apt-get install -q -y cmake make g++ file
run: |
cmake . -DDISABLE_SSE2=1 -DDISABLE_AVX2=1 && make && file bin/trimal && file bin/readal &&
./scripts/generate_trimmed_msas.sh && ./scripts/compare_trimmed_msas.sh