Merge pull request #14 from TravisWheelerLab/optimizedCmakeCompile #124
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: Build and Test | |
on: [push, pull_request] | |
jobs: | |
check-build: | |
runs-on: ubuntu-20.04 | |
container: | |
image: traviswheelerlab/fastavector-build | |
volumes: | |
- ${{ github.workspace }}:/code | |
steps: | |
- uses: actions/checkout@v1 | |
- run: cmake . | |
- run: make | |
check-build-mac: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v1 | |
- run: cmake -DCMAKE_C_COMPILER=`which gcc-10` . | |
- run: make | |
check-legacy-build: | |
runs-on: ubuntu-20.04 | |
container: | |
image: traviswheelerlab/fastavector-build | |
volumes: | |
- ${{ github.workspace }}:/code | |
steps: | |
- uses: actions/checkout@v1 | |
- run: make -f Makefile_legacy | |
- run: make -f Makefile_legacy static | |
check-legacy-build-mac: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v1 | |
- run: make -f Makefile_legacy CC=`which gcc-10` | |
- run: make -f Makefile_legacy static CC=`which gcc-10` | |
check-tests: | |
runs-on: ubuntu-20.04 | |
container: | |
image: traviswheelerlab/fastavector-build | |
volumes: | |
- ${{ github.workspace }}:/code | |
steps: | |
- uses: actions/checkout@v1 | |
- run: cmake . | |
- run: make | |
- run: make test | |
check-format: | |
runs-on: ubuntu-20.04 | |
container: | |
image: traviswheelerlab/fastavector-build | |
volumes: | |
- ${{ github.workspace }}:/code | |
steps: | |
- uses: actions/checkout@v1 | |
- run: ./tool/check-format.sh || true | |