| 1 | name: Test |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | |
| 6 | jobs: |
| 7 | build-linux: |
| 8 | name: Build and test linux |
| 9 | runs-on: ubuntu-latest |
| 10 | env: |
| 11 | RELEASE_OS: linux |
| 12 | steps: |
| 13 | - name: checkout branch |
| 14 | uses: actions/checkout@master |
| 15 | - name: Setup environment |
| 16 | id: setup |
| 17 | run: echo ::set-output name=RELEASE_VERSION::${GITHUB_REF##*/} |
| 18 | - name: make |
| 19 | run: | |
| 20 | cd ext/htslib && autoheader && autoconf && cd ../.. |
| 21 | mkdir build && cd build && cmake .. -DBUILD_FUNCTESTING=ON && make && make install && cd .. |
| 22 | - name: Setup bustools |
| 23 | run: | |
| 24 | git clone https://github.com/BUStools/bustools.git |
| 25 | cd bustools && mkdir build && cd build && cmake .. && make && make install && cd ../.. |
| 26 | - name: Functional testing |
| 27 | run: | |
| 28 | cd build && make test |