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 c34ca54 commit 2440b8d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci-fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci-fedora

on:
workflow_call:

jobs:
build-fedora:
runs-on: macos-latest
container:
image: fedora:rawhide
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
dnf install -y autoconf automake gcc gettext-devel libtool make pkgconfig
dnf install -y aspell-devel check-devel gpm-devel libX11-devel pkgconfig(ext2fs) pkgconfig(glib-2.0) pkgconfig(gmodule-2.0) pkgconfig(libssh2) pkgconfig(slang)
- name: Bootstrap build system
run: ./autogen.sh

- name: Build default configuration
run: |
mkdir build-default && cd $_
../configure \
--prefix="$(pwd)/install" \
--enable-mclib \
--enable-aspell
make -j$(nproc)
make check
make install
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-suite-logs-fedora
path: build-*/**/test-suite.log
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-ubuntu.yml

call-build-fedora:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-fedora.yml

call-build-macos:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-macos.yml

0 comments on commit 2440b8d

Please sign in to comment.