-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Linux CI builds to Github actions
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |