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

CI improvements: add macOS runners; build in parallel; disable silent rules #1511

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,37 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, macos-14, ubuntu-latest]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install packages
run: sudo apt-get install autoconf-archive flex libpcre2-dev
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
run: ./configure --disable-silent-rules
- name: make
run: make
run: make -j${{ steps.info.outputs.cpus }}
- name: make check
run: make check
run: make check -j${{ steps.info.outputs.cpus }}
- name: make distcheck
run: make distcheck
run: make distcheck -j${{ steps.info.outputs.cpus }}
Loading