Skip to content

Commit

Permalink
Merge pull request #477 from KimBioInfoStudio/kim/speedup_ci
Browse files Browse the repository at this point in the history
speedup build with using nproc
  • Loading branch information
sfchen committed May 13, 2023
2 parents dd3f2a0 + 1da9a67 commit db38e73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -18,6 +18,10 @@ jobs:
- name: checkout scm
uses: actions/checkout@v3

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores

- name: install build dependencies (Ubuntu)
run: sudo apt update && sudo apt install -y build-essential nasm
if: runner.os == 'Linux'
Expand All @@ -36,7 +40,7 @@ jobs:
run: |
cd src/libs/deflate
cmake -B build
cmake --build build
cmake --build build -j ${{ steps.cpu-cores.outputs.count }}
sudo cmake --install build
cd -
Expand All @@ -51,7 +55,7 @@ jobs:
cd src/libs/isa-l
./autogen.sh
./configure --prefix=/usr/local
bash -c 'make -j $(nproc)'
make -j ${{ steps.cpu-cores.outputs.count }}
sudo make install
cd -
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -119,7 +119,7 @@ git clone https://github.com/intel/isa-l.git
cd isa-l
./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64
make
make -j $(nproc)
sudo make install
```

Expand All @@ -129,7 +129,7 @@ See https://github.com/ebiggers/libdeflate
git clone https://github.com/ebiggers/libdeflate.git
cd libdeflate
cmake -B build
cmake --build build
cmake --build build -j $(nproc)
cmake --install build
```

Expand All @@ -140,7 +140,7 @@ git clone https://github.com/OpenGene/fastp.git

# build
cd fastp
make
make -j $(nproc)

# Install
sudo make install
Expand Down

0 comments on commit db38e73

Please sign in to comment.