v1.1.0: Memory optimizations #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
######################################################################################## | |
checkout: | |
name: Checkout | |
strategy: | |
matrix: | |
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac] | |
runs-on: [self-hosted, clusty, '${{ matrix.machine }}'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get tags | |
run: | | |
cd ./libs/igraph | |
git fetch --prune --unshallow | |
echo exit code $? | |
git tag --list | |
continue-on-error: true | |
######################################################################################## | |
make: | |
name: Make | |
needs: checkout | |
strategy: | |
fail-fast: false | |
matrix: | |
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=${{matrix.compiler}} STATIC_LINK=true LEIDEN=${{ matrix.leiden }} PLATFORM=${{ matrix.platform }} | |
- name: tar artifacts | |
run: tar -cvzf clusty.tar.gz clusty LICENSE | |
######################################################################################## | |
help: | |
name: Print usage | |
needs: make | |
strategy: | |
fail-fast: false | |
matrix: | |
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac] | |
runs-on: [self-hosted, clusty, '${{ matrix.machine }}'] | |
steps: | |
- name: help | |
run: ./clusty | |
######################################################################################## | |
upload: | |
name: Upload | |
needs: help | |
strategy: | |
fail-fast: false | |
matrix: | |
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac] | |
runs-on: [self-hosted, clusty, '${{ matrix.machine }}'] | |
steps: | |
- name: deploy | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./clusty.tar.gz | |
asset_name: clusty-${{ github.event.release.tag_name }}-${{matrix.machine}}.tar.gz | |
asset_content_type: application/gzip |