Skip to content

Commit

Permalink
Github Actions: add clang support
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Jun 13, 2020
1 parent 1017d70 commit 6416152
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ jobs:
- ubuntu:focal
- debian:buster
cc:
#- clang
- clang
- gcc
include:
# at least some versions of clang cannot compile php bindings
- cc: clang
cxx: clang++
php: disable
- cc: gcc
cxx: g++
php: enable

runs-on: ubuntu-latest
container:
Expand All @@ -34,7 +42,7 @@ jobs:
run: |
set -ex
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
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 clang
pip3 install Cython
set +ex
env:
Expand All @@ -44,7 +52,7 @@ jobs:
set -ex
autoreconf -fi
# disable java for now
./configure --disable-python --disable-python-numpy --enable-perl --enable-lua --enable-pascal --disable-java --enable-php --enable-ruby
./configure --disable-python --disable-python-numpy --enable-perl --enable-lua --enable-pascal --disable-java --${PHP_ENABLE}-php --enable-ruby
make
make check
make distclean
Expand All @@ -65,6 +73,9 @@ jobs:
set +ex
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}
XRL_PYTHON3: /usr/bin/python3
LUA: /usr/bin/lua5.3
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
PHP_ENABLE: ${{matrix.php}}
DISTCHECK_CONFIGURE_FLAGS: --enable-pascal --enable-java --enable-perl --enable-lua --enable-python --enable-python-numpy --${{matrix.php}}-php --enable-ruby
6 changes: 0 additions & 6 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,4 @@ windows:

EXTRA_DIST = xraylib.spec.in Changelog

if OS_WINDOWS
DISTCHECK_CONFIGURE_FLAGS = --enable-pascal --enable-python --enable-python-numpy --enable-fortran
else
DISTCHECK_CONFIGURE_FLAGS = --enable-pascal --enable-java --enable-perl --enable-lua --enable-python --enable-python-numpy --enable-php --enable-ruby
endif

.PHONY: windows

0 comments on commit 6416152

Please sign in to comment.