From bd20265dca8e3ae2984652383c9ca416528c01f0 Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Sat, 13 Jun 2020 13:08:20 +0100 Subject: [PATCH] Move Linux CI builds to Github actions --- .github/workflows/ci.yml | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e2f7b9b9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,68 @@ +name: CI + +on: + #schedule: + # - cron: '0 2 * * *' # run at 2 AM UTC + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + timeout-minutes: 60 + strategy: + matrix: + image: + - ubuntu:bionic + - ubuntu:focal + - debian:buster + cc: + #- clang + - gcc + + runs-on: ubuntu-latest + container: + image: ${{ matrix.image }} + + steps: + - uses: actions/checkout@v2 + - name: Install ubuntu dependencies + if: startsWith(matrix.image, 'ubuntu') || startsWith(matrix.image, 'debian') + run: | + set -ex + export DEBIAN_FRONTEND=noninteractive + apt-get --yes --force-yes update + apt-get --yes --force-yes install python3-pip python3-all-dev python3-numpy fpc gfortran gcc php-dev swig libperl-dev perl lua5.3 liblua5.3-dev ruby-dev default-jdk + pip3 install Cython + set +ex + - name: Build and test + run: | + set -ex + autoreconf -fi + ./configure --disable-python --disable-python-numpy --enable-perl --enable-lua --enable-pascal --enable-java --enable-php --enable-ruby + make + make check + make distclean + ./configure --disable-all-bindings CFLAGS="-std=c89 -pedantic $CFLAGS" + make + make check + make distclean + ./configure --disable-ruby --disable-perl --disable-lua --enable-python-numpy --enable-python PYTHON=${XRL_PYTHON3} + make + make check + make distclean + ./configure --disable-all-bindings --disable-shared --enable-static + make + make check + make distclean + ./configure --disable-all-bindings + make distcheck PYTHON=${XRL_PYTHON3} + set +ex + env: + CC: ${{matrix.cc}} + CFLAGS: -Wall -Werror + XRL_PYTHON3: /usr/bin/python3 + LUA: /usr/bin/lua5.3