Skip to content

Commit

Permalink
fixup! Ticket #4170: implement CI via GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
  • Loading branch information
zyv committed Oct 19, 2024
1 parent 7f77641 commit ab7930c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 46 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci-alpine.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: ci-alpine

on:
workflow_call:
on: [ push, pull_request ]

jobs:
build-alpine:
runs-on: ubuntu-latest
container:
image: alpine:latest
timeout-minutes: 10
timeout-minutes: 5
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v4
Expand All @@ -23,15 +23,13 @@ jobs:

- name: Build default configuration
run: |
mkdir build-default
# Tests must be run as a non-root user
adduser --home "$(pwd)/build-default" --no-create-home --disabled-password test users
adduser --home "$(pwd)" --no-create-home --disabled-password test users
chown test:users -R $(pwd)
sudo -u test -i \
../configure \
--prefix="$(pwd)/build-default/install" \
./configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/ci-fedora.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: ci-fedora

on:
workflow_call:
on: [ push, pull_request ]

jobs:
build-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
timeout-minutes: 10
timeout-minutes: 5
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v4
Expand All @@ -26,15 +26,13 @@ jobs:

- name: Build default configuration
run: |
mkdir build-default
# Tests must be run as a non-root user
useradd --home "$(pwd)/build-default" test
useradd --home "$(pwd)" test
chown test:test -R $(pwd)
sudo -u test -i \
../configure \
--prefix="$(pwd)/build-default/install" \
./configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: ci-macos

on:
workflow_call:
on: [ push, pull_request ]

jobs:
build-macos:
runs-on: macos-latest
timeout-minutes: 10
timeout-minutes: 5
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

env:
CFLAGS: -Wno-assign-enum
Expand All @@ -26,12 +26,10 @@ jobs:

- name: Build default configuration
run: |
mkdir build-default && cd $_
../configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell=/opt/homebrew
./configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell=/opt/homebrew
make -j$(sysctl -n hw.logicalcpu)
make check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: ci-ubuntu

on:
workflow_call:
on: [ push, pull_request ]

jobs:
build-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v4
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit ab7930c

Please sign in to comment.