Skip to content

Commit

Permalink
Updates in tests and automatic building scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
agudys committed Sep 12, 2024
1 parent d8d133a commit 5d34c00
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 44 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
- name: Get tags
run: |
cd ./libs/igraph
git fetch --prune --unshallow
echo exit code $?
git tag --list
continue-on-error: true

########################################################################################
make:
Expand All @@ -33,21 +35,31 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [x64_linux, arm64_linux]
machine: [x64_linux]
leiden: [true]
platform: [avx2]
compiler: [g++-13]
include:
- machine: arm64_linux
leiden: true
platform: arm8
compiler: g++-12
- machine: x64_mac
leiden: false
platform: avx2
compiler: g++-13
- machine: arm64_mac
leiden: false
platform: m1
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

steps:
- name: make
run: |
make clean
make -j32 CXX=g++-12 STATIC_LINK=true LEIDEN=${{ matrix.leiden }}
make -j32 CXX=${{matrix.compiler}} STATIC_LINK=true LEIDEN=${{ matrix.leiden }} PLATFORM=${{ matrix.platform }}
- name: tar artifacts
run: tar -cvzf clusty.tar.gz clusty LICENSE

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ['${{ matrix.machine }}']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -37,7 +37,7 @@ jobs:
- name: tar artifacts
run: tar -cvf clusty.tar ./clusty-${{matrix.compiler}} ./test/cmp.py ./test/vir61.*

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: executable-artifact-${{ matrix.machine }}
path: ./clusty.tar
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ['${{ matrix.machine }}']

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: executable-artifact-${{ matrix.machine }}
path: ./
Expand Down
108 changes: 72 additions & 36 deletions .github/workflows/self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Checkout
strategy:
matrix:
machine: [xeon, mac-i7, mac-m1]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

steps:
Expand All @@ -25,9 +25,10 @@ jobs:
- name: Get tags
run: |
cd ./libs/igraph
#git fetch --prune --unshallow --tags
git fetch --prune --unshallow
echo exit code $?
git tag --list
continue-on-error: true


########################################################################################
Expand All @@ -37,48 +38,43 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [xeon, mac-i7, mac-m1]
compiler: [g++-11]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
include:
- machine: x64_linux
platform: avx2
- machine: arm64_linux
platform: arm8
- machine: x64_mac
platform: avx2
- machine: arm64_mac
platform: m1
exclude:
- machine: arm64_linux
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

steps:
- name: make
run: |
make -j32 CXX=${{matrix.compiler}}
make -j32 CXX=${{matrix.compiler}} PLATFORM=${{ matrix.platform }}
cp ./clusty ./clusty-${{matrix.compiler}}
make clean
########################################################################################
make-leiden:
name: make (Leiden)

needs: checkout
strategy:
fail-fast: false
matrix:
machine: [xeon]
compiler: [g++-11]

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

steps:
- name: make
run: |
make -j32 CXX=${{matrix.compiler}} LEIDEN=true
cp ./clusty ./clusty-leiden-${{matrix.compiler}}
make clean
########################################################################################
toy:
name: Toy example
needs: make
strategy:
fail-fast: false
matrix:
machine: [xeon, mac-i7, mac-m1]
compiler: [g++-11]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
algo: [single]
exclude:
- machine: arm64_linux
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

Expand All @@ -96,10 +92,13 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [xeon, mac-i7, mac-m1]
compiler: [g++-11]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
algo: [single, complete]
threshold: [95, 70]
exclude:
- machine: arm64_linux
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

Expand All @@ -116,10 +115,13 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [xeon, mac-i7, mac-m1]
compiler: [g++-11]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
algo: [single, complete]
threshold: [95, 70]
exclude:
- machine: arm64_linux
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

Expand Down Expand Up @@ -151,10 +153,13 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [xeon, mac-i7, mac-m1]
compiler: [g++-11]
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
algo: [single, complete, uclust, set-cover, cd-hit]
threshold: [70]
exclude:
- machine: arm64_linux
compiler: g++-13

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

Expand All @@ -173,18 +178,49 @@ jobs:
run: |
./clusty-${{matrix.compiler}} --algo ${{matrix.algo}} --objects-file ./test/ictv.list --similarity --min ani 0.${{matrix.threshold}} ./test/ictv.num ictv.${{matrix.algo}}.${{matrix.threshold}}.reps.num --out-representatives --numeric-ids
cmp ictv.${{matrix.algo}}.${{matrix.threshold}}.reps.num ./test/ictv.${{matrix.algo}}.${{matrix.threshold}}.reps.csv
########################################################################################
make-leiden:
name: Make (Leiden)

needs: ictv-all
strategy:
fail-fast: false
matrix:
machine: [x64_linux, arm64_linux]
include:
- machine: x64_linux
compiler: g++-13
platform: avx2
- machine: arm64_linux
compiler: g++-12
platform: arm8

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

steps:
- name: make
run: |
make -j32 CXX=${{matrix.compiler}} LEIDEN=true PLATFORM=${{ matrix.platform }}
cp ./clusty ./clusty-leiden-${{matrix.compiler}}
make clean
########################################################################################
ictv-leiden:
name: ICTV (leiden)
name: ICTV (Leiden)
needs: make-leiden
strategy:
fail-fast: false
matrix:
machine: [xeon]
compiler: [g++-11]
machine: [x64_linux, arm64_linux]
algo: [leiden]
threshold: [70]
include:
- machine: x64_linux
compiler: g++-13
- machine: arm64_linux
compiler: g++-12

runs-on: [self-hosted, clusty, '${{ matrix.machine }}']

Expand Down
9 changes: 6 additions & 3 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
//
// *******************************************************************************************

#define VERSION "1.0.2"
#define DATE "2024-08-29"
#define VERSION "1.0.3"
#define DATE "2024-09-12"


/********* Version history *********
1.0.3 (2024-09-12)
Fixes in building scripts.
1.0.2 (2024-08-29)
Fixed crash in reading very large input matrices. Reduced memory requirements.
Expand All @@ -25,4 +28,4 @@
1.0.0 (2024-06-26)
First public release
*/
*/

0 comments on commit 5d34c00

Please sign in to comment.