-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release deployment scripts added. Fixes in one the constructors.
* 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
Showing
5 changed files
with
161 additions
and
181 deletions.
There are no files selected for viewing
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
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 |
Oops, something went wrong.