Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedup build with using nproc #477

Merged
merged 4 commits into from
May 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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