Skip to content

Commit

Permalink
Merge pull request #387 from KimBioInfoStudio/kim/gh_actions
Browse files Browse the repository at this point in the history
add github actions build test
  • Loading branch information
sfchen committed Mar 22, 2023
2 parents 80d90f8 + fdb1ed6 commit 7c75a03
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,57 @@
name: fastp ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: checkout scm
uses: actions/checkout@v2
- name: install build dependencies (Ubuntu)
run: sudo apt update && sudo apt install -y build-essential nasm
if: runner.os == 'Linux'
- name: install build dependencies (MacOS)
run: brew install automake autoconf coreutils nasm
if: runner.os == 'macOS'
- name: get deflate
uses: actions/checkout@v2
with:
repository: ebiggers/libdeflate
path: src/libs/deflate
- name: build deflate
run: |
cd src/libs/deflate
bash -c 'make -j $(nproc)'
sudo make install
cd -
- name: get isa-l
uses: actions/checkout@v2
with:
repository: intel/isa-l
path: src/libs/isa-l
- name: build isa-l
run: |
cd src/libs/isa-l
./autogen.sh
./configure --prefix=/usr/local
bash -c 'make -j $(nproc)'
sudo make install
cd -
- name: make fatsp (MacOS)
run: bash -c 'make -j $(nproc)'
if: runner.os == 'macOS'
- name: make fastp static (Ubuntu)
run: bash -c 'make -j $(nproc) static'
if: runner.os == 'Linux'
- name: test
run: chmod a+x ./fastp && ./fastp --version

0 comments on commit 7c75a03

Please sign in to comment.