Skip to content

Commit

Permalink
Build in parallel in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Apr 23, 2024
1 parent dc86c93 commit a6cc088
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,27 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install packages
id: info
run: |
case $RUNNER_OS in
Linux)
sudo apt-get install autoconf autoconf-archive automake flex libpcre2-dev libtool
cpus=$(nproc)
;;
macOS)
brew install autoconf autoconf-archive automake pcre2 libtool
cpus=$(sysctl -n hw.activecpu)
;;
*)
cpus=1
esac
echo "cpus=$cpus" >> "$GITHUB_OUTPUT"
- name: autogen
run: ./autogen.sh --no-configure
- name: configure
run: ./configure --disable-silent-rules
- name: make
run: make
run: make -j${{ steps.info.outputs.cpus }}
- name: make check
run: make check
- name: make distcheck
Expand Down

0 comments on commit a6cc088

Please sign in to comment.