Some small include cleanup #45
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: SPAdes basic tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- main | |
- next | |
tags: | |
- '*' | |
pull_request: | |
env: | |
BUILD_TYPE: Release | |
BUILD_DIR: ${{github.workspace}}/build | |
INSTALL_DIR: ${{github.workspace}}/spades | |
SRC_DIR: ${{github.workspace}}/src | |
PKG: SPAdes-*-Linux | |
jobs: | |
build: | |
runs-on: self-hosted | |
name: 'π§ Build SPAdes' | |
steps: | |
- name: 'π§Ή Cleanup' | |
run: > | |
set -e && | |
shopt -s dotglob && | |
rm -rf * | |
- name: 'π§° Checkout' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: 'βοΈ Install ccache' | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
variant: sccache | |
key: sccache-${{env.BUILD_TYPE}} | |
- name: 'βοΈ Configure CMake' | |
run: > | |
cmake | |
-B ${{env.BUILD_DIR}} | |
-S ${{env.SRC_DIR}} | |
-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache | |
-DCMAKE_INSTALL_PREFIX=${{env.INSTALL_DIR}} | |
- name: 'π§ Build' | |
run: > | |
cmake | |
--build ${{env.BUILD_DIR}} | |
-j16 | |
-t package include_test debruijn_test | |
- name: 'π¦ Package' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: | | |
${{env.BUILD_DIR}}/${{env.PKG}}.tar.gz | |
${{env.BUILD_DIR}}/bin/debruijn_test | |
${{env.BUILD_DIR}}/bin/include_test | |
spades-1k-checks: | |
name: 'E. coli 1k smoke checks' | |
runs-on: self-hosted | |
needs: build | |
steps: | |
- name: 'π§Ή Cleanup' | |
run: > | |
set -e && | |
shopt -s dotglob && | |
rm -rf * | |
- name: 'π¦ Download package' | |
uses: actions/download-artifact@v3 | |
with: | |
name: build-artifacts | |
path: ${{env.INSTALL_DIR}} | |
- name: 'π¦ Unpack package' | |
working-directory: ${{env.INSTALL_DIR}} | |
run: > | |
tar -zxf ${{env.PKG}}.tar.gz | |
- name: '1k multi-cell' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/spades.py --test | |
- name: '1k single-cell' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/spades.py --sc --test | |
- name: '1k meta' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/metaspades.py --test | |
- name: '1k plasmid' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/plasmidspades.py --test | |
- name: '1k rna' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/rnaspades.py --test | |
- name: '1k corona' | |
run: > | |
${{env.INSTALL_DIR}}/${{env.PKG}}/bin/coronaspades.py --test | |
spades-unittests: | |
name: 'SPAdes unittests' | |
runs-on: self-hosted | |
needs: build | |
steps: | |
- name: 'π§Ή Cleanup' | |
run: > | |
set -e && | |
shopt -s dotglob && | |
rm -rf * | |
- name: 'π§° Checkout' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: 'π¦ Download package' | |
uses: actions/download-artifact@v3 | |
with: | |
name: build-artifacts | |
path: ${{env.BUILD_DIR}} | |
- name: 'π Include tests' | |
working-directory: ${{github.workspace}} | |
run: > | |
chmod +x ${{env.BUILD_DIR}}/bin/include_test && | |
${{env.BUILD_DIR}}/bin/include_test | |
- name: 'π De-Bruijn tests' | |
working-directory: ${{github.workspace}} | |
run: > | |
chmod +x ${{env.BUILD_DIR}}/bin/debruijn_test && | |
${{env.BUILD_DIR}}/bin/debruijn_test |