Skip to content

Commit

Permalink
Leiden algorithm included in precompiled macOS binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
agudys committed Oct 14, 2024
1 parent b79a6f1 commit 93a364b
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 603 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,18 @@ jobs:
machine: [x64_linux]
platform: [avx2]
compiler: [14]
leiden: [true]
include:
- {machine: arm64_linux, platform: arm8, compiler: 12, leiden: true}
- {machine: x64_mac, platform: avx2, compiler: 12, leiden: false}
- {machine: arm64_mac, platform: m1, compiler: 13, leiden: false}
- {machine: arm64_linux, platform: arm8, compiler: 12}
- {machine: x64_mac, platform: avx2, compiler: 12}
- {machine: arm64_mac, platform: m1, compiler: 12}

runs-on: [self-hosted, vclust, '${{ matrix.machine }}']
env:
DIR: vclust-${{ github.event.release.tag_name }}-${{matrix.machine}}

steps:
- name: make
run: make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }} LEIDEN=${{ matrix.leiden }}
run: make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} PLATFORM=${{ matrix.platform }} LEIDEN=true
- name: tar artifacts
run: |
mkdir ${DIR}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Actions CI
name: Build and tests

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
machine: [ubuntu-latest, macOS-12]
compiler: [g++-12]
compiler: [12]
runs-on: ['${{ matrix.machine }}']

steps:
Expand All @@ -26,7 +26,7 @@ jobs:

- name: make
run: |
make -j32 CXX=${{matrix.compiler}}
make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}}
- name: tar artifacts
run: tar -cvf vclust.tar ./vclust.py ./test.py ./example ./bin/kmer-db ./bin/lz-ani ./bin/clusty ./bin/multi-fasta-split

Expand All @@ -43,7 +43,6 @@ jobs:
fail-fast: false
matrix:
machine: [ubuntu-latest, macOS-12]
compiler: [g++-11]

runs-on: ['${{ matrix.machine }}']

Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,20 @@ jobs:
machine: [x64_linux]
platform: [avx2]
compiler: [14]
leiden: [true]
include:
- {machine: arm64_linux, platform: arm8, compiler: 12, leiden: true}
- {machine: x64_mac, platform: avx2, compiler: 12, leiden: false}
- {machine: arm64_mac, platform: m1, compiler: 13, leiden: false}
- {machine: arm64_linux, platform: arm8, compiler: 12}
- {machine: x64_mac, platform: avx2, compiler: 12}
- {machine: arm64_mac, platform: m1, compiler: 12}

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

steps:
- name: make
run: make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }} LEIDEN=${{ matrix.leiden }}
run: make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} PLATFORM=${{ matrix.platform }} LEIDEN=true

########################################################################################
pipeline:
name: Pipeline
pipeline-linux:
name: Pipeline (linux)
needs: make
strategy:
fail-fast: false
Expand All @@ -64,7 +63,23 @@ jobs:
runs-on: [self-hosted, vclust, '${{ matrix.machine }}']

steps:

- name: run pipeline
run: |
pytest test.py
########################################################################################
pipeline-macos:
name: Pipeline (macOS)
needs: make
strategy:
fail-fast: false
matrix:
machine: [x64_mac, arm64_mac]
runs-on: [self-hosted, vclust, '${{ matrix.machine }}']

steps:

- name: run pipeline
run: |
source /Users/agudys/agudys-env/bin/activate
pytest test.py
2 changes: 1 addition & 1 deletion 3rd_party/clusty
Loading

0 comments on commit 93a364b

Please sign in to comment.