Skip to content
Merged
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
101 changes: 101 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,105 @@ jobs:
- name: Build and test distribution
run: make distcheck

test-musl:
runs-on: ubuntu-latest
container: alpine:latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
apk add --no-cache \
build-base \
autoconf \
automake \
perl \
patch \
diffutils \
xmlto \
pcre2-dev \
bash \
git \
coreutils \
python3

- name: Clone gnulib for bootstrap
run: |
git clone --depth 1 https://git.savannah.gnu.org/git/gnulib.git /tmp/gnulib

- name: Bootstrap
run: |
export PATH="/tmp/gnulib:$PATH"
./bootstrap

- name: Configure
run: ./configure --with-pcre2

- name: Build
run: make -j$(nproc)

- name: Run tests
run: make check

- name: Show test results on failure
if: failure()
run: |
echo "=== Test logs ==="
find . -name "*.log" -type f -exec echo "=== {} ===" \; -exec cat {} \;
echo "=== Test arena contents ==="
find test-arena -type f 2>/dev/null | head -20 | while read f; do
echo "=== $f ==="
cat "$f" 2>/dev/null || echo "Cannot read file"
done

test-musl-without-pcre2:
runs-on: ubuntu-latest
container: alpine:latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies (without PCRE2)
run: |
apk add --no-cache \
build-base \
autoconf \
automake \
perl \
patch \
diffutils \
xmlto \
bash \
git \
coreutils \
python3

- name: Clone gnulib for bootstrap
run: |
git clone --depth 1 https://git.savannah.gnu.org/git/gnulib.git /tmp/gnulib

- name: Bootstrap
run: |
export PATH="/tmp/gnulib:$PATH"
./bootstrap

- name: Configure without PCRE2
run: ./configure --without-pcre2

- name: Build
run: make -j$(nproc)

- name: Run tests
run: make check

- name: Show test results on failure
if: failure()
run: |
echo "=== Test logs ==="
find . -name "*.log" -type f -exec echo "=== {} ===" \; -exec cat {} \;
echo "=== Test arena contents ==="
find test-arena -type f 2>/dev/null | head -20 | while read f; do
echo "=== $f ==="
cat "$f" 2>/dev/null || echo "Cannot read file"
done


Loading