Skip to content

v1.2.0: Lower memory requirements #3

v1.2.0: Lower memory requirements

v1.2.0: Lower memory requirements #3

Workflow file for this run

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, lz-ani, '${{ matrix.machine }}']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
########################################################################################
make:
name: Make
needs: checkout
strategy:
fail-fast: false
matrix:
machine: [x64_linux]
platform: [avx2]
compiler: [g++-13]
include:
- machine: arm64_linux
platform: arm8
compiler: g++-12
- machine: x64_mac
platform: avx2
compiler: g++-13
- machine: arm64_mac
platform: m1
compiler: g++-13
runs-on: [self-hosted, lz-ani, '${{ matrix.machine }}']
steps:
- name: make
run: |
make clean
make -j32 CXX=${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }}
- name: tar artifacts
run: tar -cvzf lz-ani.tar.gz lz-ani 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, lz-ani, '${{ matrix.machine }}']
steps:
- name: help
run: ./lz-ani
########################################################################################
upload:
name: Upload
needs: help
strategy:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, lz-ani, '${{ matrix.machine }}']
steps:
- name: deploy
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./lz-ani.tar.gz
asset_name: lz-ani-${{ github.event.release.tag_name }}-${{matrix.machine}}.tar.gz
asset_content_type: application/gzip