Merge pull request #5299 from maxGimeno/Checks_in_github-maxGimeno

CI: Add Checks in GitHub Actions
This commit is contained in:
Laurent Rineau 2021-01-06 16:04:47 +01:00
commit fee181b6eb
12 changed files with 51 additions and 21 deletions

2
.github/install.sh vendored
View File

@ -3,7 +3,7 @@ sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt-get update
sudo apt-get install -y libmpfr-dev \
libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \
libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev
libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost1.72-dev zsh
#update cmake to 3.18.4
sudo apt purge --auto-remove cmake
cd /tmp

30
.github/workflows/checks.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: CMake Test Merge Branch
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
- name: install dependencies
run: |
.github/install.sh
set -x
sudo apt-get update && sudo apt-get install -y graphviz ssh bibtex2html
sudo pip install lxml
sudo pip install 'pyquery==1.4.1' # it seems to be the last py2 compatible version
wget --no-verbose -O doxygen_exe https://cgal.geometryfactory.com/~mgimeno/doxygen/build_1_8_13/bin/doxygen
sudo mv doxygen_exe /usr/bin/doxygen
sudo chmod +x /usr/bin/doxygen
git config --global user.email "maxime.gimeno@geometryfactory.com"
git config --global user.name "Maxime Gimeno"
- name: Run checks
run: |
zsh Scripts/developer_scripts/test_merge_of_branch HEAD
#test dependencies
bash Scripts/developer_scripts/cgal_check_dependencies.sh --check_headers /usr/bin/doxygen

View File

@ -4,7 +4,6 @@ Arithmetic_kernel
Cartesian_kernel
Circulator
Filtered_kernel
Geomview
Hash_map
Homogeneous_kernel
Installation

View File

@ -1,19 +1,13 @@
Algebraic_foundations
Arithmetic_kernel
BGL
Cartesian_kernel
Circulator
Distance_2
Distance_3
Filtered_kernel
Hash_map
Homogeneous_kernel
Installation
Intersections_2
Intersections_3
Interval_support
Kernel_23
Kernel_d
Modular_arithmetic
Number_types
Profiling_tools

View File

@ -1,6 +1,4 @@
Algebraic_foundations
Circulator
Geomview
Installation
Interval_support
Kernel_23

View File

@ -31,6 +31,17 @@ set(list_of_whitelisted_headers_txt [=[
CGAL/Three/Viewer_config.h
CGAL/Three/Viewer_interface.h
CGAL/Three/Three.h
CGAL/boost/graph/properties_OpenMesh.h
CGAL/boost/graph/properties_TriMesh_ArrayKernelT.h
CGAL/boost/graph/properties_PolyMesh_ArrayKernelT.h
CGAL/boost/graph/graph_traits_TriMesh_ArrayKernelT.h
CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h
CGAL/boost/graph/partition.h
CGAL/boost/graph/METIS/partition_dual_graph.h
CGAL/boost/graph/METIS/partition_graph.h
CGAL/IO/Triangulation_geomview_ostream_3.h
CGAL/IO/Triangulation_geomview_ostream_2.h
CGAL/IO/Polyhedron_geomview_ostream.h
]=])

View File

@ -466,9 +466,9 @@ using std::max;
//-------------------------------------------------------------------//
// Is Geomview usable ?
#if !defined(_MSC_VER) && !defined(__MINGW32__)
# define CGAL_USE_GEOMVIEW
#endif
//#if !defined(_MSC_VER) && !defined(__MINGW32__)
//# define CGAL_USE_GEOMVIEW
//#endif
//-------------------------------------------------------------------//

View File

@ -2,7 +2,6 @@ Algebraic_foundations
BGL
Circulator
Distance_2
Geomview
HalfedgeDS
Hash_map
Installation

View File

@ -8,7 +8,6 @@ Circulator
Distance_2
Distance_3
Filtered_kernel
Geomview
HalfedgeDS
Hash_map
Homogeneous_kernel

View File

@ -5,14 +5,15 @@
# */package_info/*/license.txt
setopt extendedglob
for p in ^*build*(/); do
if [ -d $p/include ]; then
OLD_LOCALE=$(locale | grep COLLATE | cut -d= -f2)
export LC_COLLATE="en_US.UTF-8"
for p in ^*build*(/); do
if [ -d $p/include ]; then
licFile=$p/package_info/$p/license.txt
l=`licensecheck -r $p/include $p/src | awk -F': ' '{print $2}' | grep -v BSL | sed -e 's/ *GENERATED FILE//' | sort -u`
if [ "x`echo $l | wc -l`" = "x1" ]; then
echo $l > "$licFile"
elif [ -z "`echo $l | grep -Ev '^L?GPL \(v3 or later\) *$'`" ]; then
elif [ -z "`echo $l | grep -Ev '^L?GPL \(v3 or later\) *$'`" ]; then
echo 'GPL (v3 or later)' > "$licFile"
else
# echo "MULTIPLE!" > "$licFile";
@ -20,3 +21,4 @@ for p in ^*build*(/); do
fi
fi
done
export LC_COLLATE=$OLD_LOCALE

View File

@ -6,7 +6,6 @@ Circulator
Distance_2
Distance_3
Filtered_kernel
Geomview
GraphicsView
Hash_map
Homogeneous_kernel

View File

@ -6,7 +6,6 @@ Circulator
Distance_2
Distance_3
Filtered_kernel
Geomview
GraphicsView
Hash_map
Homogeneous_kernel