Skip to content

Commit

Permalink
Move Linux CI builds to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Jun 13, 2020
1 parent cae25c7 commit bd20265
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bd20265

Please sign in to comment.