Skip to content

fixup! Ticket #4170: implement CI via GitHub Actions #1

fixup! Ticket #4170: implement CI via GitHub Actions

fixup! Ticket #4170: implement CI via GitHub Actions #1

Workflow file for this run

name: ci-alpine
on: [ push, pull_request ]
jobs:
build-alpine:
runs-on: ubuntu-latest
container:
image: alpine:latest
timeout-minutes: 5
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apk add autoconf automake build-base libtool pkgconf sudo
apk add aspell-dev check-dev e2fsprogs-dev gettext-dev glib-dev gpm-dev libssh2-dev perl slang-dev
- name: Bootstrap build system
run: ./autogen.sh
- name: Build default configuration
run: |
# Tests must be run as a non-root user
adduser --home "$(pwd)" --no-create-home --disabled-password test users
chown test:users -R $(pwd)
sudo -u test -i \
./configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell
sudo -u test -i make -j$(nproc)
sudo -u test -i make check
sudo -u test -i make install
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-suite-logs-alpine
path: build-*/**/test-suite.log