Skip to content

Commit

Permalink
Release deployment scripts added. Fixes in one the constructors.
Browse files Browse the repository at this point in the history
* Fix off-by-one error in `GappedSequence` constructor
* Fix outdated copy constructor of `GappedSequence`
* Fix `GUARD` not being added at beginning of `CGappedSequence`


Co-authored-by: Martin Larralde <martin.larralde@embl.de>
  • Loading branch information
agudys and althonos authored Sep 17, 2024
1 parent 536ed64 commit 4e59202
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 181 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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, kmer-db, '${{ 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]
static: [true]
include:
- {machine: arm64_linux, platform: arm8, compiler: g++-12, static: true}
- {machine: x64_mac, platform: avx2, compiler: g++-13, static: false}
- {machine: arm64_mac, platform: m1, compiler: g++-13, static: false}

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

steps:
- name: make
run: |
make clean
make -j32 CXX=${{matrix.compiler}} STATIC_LINK=${{ matrix.static }} PLATFORM=${{ matrix.platform }}
- name: tar artifacts
run: tar -cvzf famsa.tar.gz famsa 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, famsa, '${{ matrix.machine }}']

steps:
- name: help
run: ./famsa

########################################################################################
upload:
name: Upload
needs: help
strategy:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
runs-on: [self-hosted, famsa, '${{ 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: ./famsa.tar.gz
asset_name: famsa-${{ github.event.release.tag_name }}-${{matrix.machine}}.tar.gz
asset_content_type: application/gzip
Loading

0 comments on commit 4e59202

Please sign in to comment.