-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (71 loc) · 2.56 KB
/
main.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
name: Build and tests
on:
push:
branches: [ main, master, develop ]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
########################################################################################
make:
name: Make
strategy:
fail-fast: false
matrix:
machine: [ubuntu-latest]
gmake_install_command: ['gmake --version']
compiler: [12]
include:
- {machine: macOS-13, gmake_install_command: 'brew install make && gmake --version', compiler: 12}
runs-on: ['${{ matrix.machine }}']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install gmake
run: ${{ matrix.gmake_install_command }}
- name: get tags
run: |
cd ./libs/igraph
git fetch --prune --unshallow
echo exit code $?
git tag --list
continue-on-error: true
- name: make
run: |
gmake -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true
cp ./bin/clusty ./clusty-${{matrix.compiler}}
gmake clean
- name: tar artifacts
run: tar -cvf clusty.tar ./clusty-${{matrix.compiler}} ./test/cmp.py ./test/vir61.*
- uses: actions/upload-artifact@v4
with:
name: executable-artifact-${{ matrix.machine }}
path: ./clusty.tar
########################################################################################
vir61-linkage:
name: Vir61
needs: make
strategy:
fail-fast: false
matrix:
machine: [ubuntu-latest, macOS-13]
compiler: [12]
algo: [single, complete]
threshold: [95, 70]
runs-on: ['${{ matrix.machine }}']
steps:
- uses: actions/download-artifact@v4
with:
name: executable-artifact-${{ matrix.machine }}
path: ./
- name: untar artifacts
run: tar -xf clusty.tar
- name: help
run: ./clusty-${{matrix.compiler}}
- name: version
run: ./clusty-${{matrix.compiler}} --version
- name: ${{matrix.algo}}, ${{matrix.threshold}} (with representatives, reordered columns)
run: |
./clusty-${{matrix.compiler}} --algo ${{matrix.algo}} --objects-file ./test/vir61.list --similarity --min ani 0.${{matrix.threshold}} --id-cols id2 id1 --distance-col ani ./test/vir61.ani vir61.${{matrix.algo}}.${{matrix.threshold}} --out-representatives
python ./test/cmp.py vir61.${{matrix.algo}}.${{matrix.threshold}} ./test/vir61.${{matrix.algo}}.${{matrix.threshold}}.python.csv