Skip to content
Merged
Show file tree
Hide file tree
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
45 changes: 45 additions & 0 deletions .github/scripts/dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#! /usr/bin/env sh

set -ex

install_gnustep_make() {
echo "::group::GNUstep Make"
cd $DEPS_PATH
git clone -q -b ${TOOLS_MAKE_BRANCH:-master} https://github.com/gnustep/tools-make.git
cd tools-make
./configure --prefix=$INSTALL_PATH || cat config.log
make install

echo "::endgroup::"
}

install_gnustep_base() {
echo "::group::GNUstep Base"
cd $DEPS_PATH
. $INSTALL_PATH/share/GNUstep/Makefiles/GNUstep.sh
git clone -q -b ${LIBS_BASE_BRANCH:-master} https://github.com/gnustep/libs-base.git
cd libs-base
./configure
make
make install
echo "::endgroup::"
}


install_gnustep_gui() {
echo "::group::GNUstep Gui"
cd $DEPS_PATH
. $INSTALL_PATH/share/GNUstep/Makefiles/GNUstep.sh
git clone -q -b ${LIBS_GUI_BRANCH:-master} https://github.com/gnustep/libs-gui.git
cd libs-gui
./configure
make
make install
echo "::endgroup::"
}

mkdir -p $DEPS_PATH

install_gnustep_make
install_gnustep_base
install_gnustep_gui
62 changes: 58 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
on:
push:
pull_request:
workflow_dispatch:
inputs:
tools_make_branch:
description: "tools-make branch"
default: "master"
required: true
libs_base_branch:
description: "libs-base branch"
default: "master"
required: true
libs_gui_branch:
description: "libs-gui branch"
default: "master"
required: true

jobs:
########### Linux ###########
Expand All @@ -15,6 +29,7 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository

strategy:
fail-fast: false
matrix:
include:
- server: x11
Expand All @@ -24,24 +39,63 @@ jobs:
- server: headless
graphics: headless

env:
env:
APT_PACKAGES: >-
build-essential
git
pkg-config
libgnutls28-dev
libffi-dev
libicu-dev
libxml2-dev
libxslt1-dev
libssl-dev
gnutls-bin
libtiff-dev
libjpeg-dev
libgnustep-base-dev
libfreetype-dev

# packages for xlib runtime
APT_PACKAGES_xlib: >-
libxt-dev

# packages for cairo runtime
APT_PACKAGES_cairo: >-
libxt-dev
libcairo2-dev

# packages for headless runtime
APT_PACKAGES_headless: >-
libcairo2-dev

DEBIAN_FRONTEND: noninteractive
SRC_PATH: ${{ github.workspace }}/source
DEPS_PATH: ${{ github.workspace }}/dependencies
INSTALL_PATH: ${{ github.workspace }}/build

steps:
- uses: actions/checkout@v3

- name: Install packages
run: |
apt-get -q -y update
apt-get -q -y install libgnustep-gui-dev libfreetype-dev libcairo2-dev libxt-dev pkg-config build-essential
apt-get -q -y install $APT_PACKAGES $APT_PACKAGES_${{ matrix.graphics }}

- name: Install dependencies
env:
TOOLS_MAKE_BRANCH: ${{github.event.inputs.tools_make_branch}}
LIBS_BASE_BRANCH: ${{github.event.inputs.libs_base_branch}}
LIBS_GUI_BRANCH: ${{github.event.inputs.libs_gui_branch}}
run: ./.github/scripts/dependencies.sh

- name: Build source
run: |
. /usr/share/GNUstep/Makefiles/GNUstep.sh
. $INSTALL_PATH/share/GNUstep/Makefiles/GNUstep.sh
./configure --enable-server=${{ matrix.server }} --enable-graphics=${{ matrix.graphics }}
make && make install

- name: Run tests
run: |
. /usr/share/GNUstep/Makefiles/GNUstep.sh
. $INSTALL_PATH/share/GNUstep/Makefiles/GNUstep.sh
make check