diff --git a/.github/workflows/BuildSamplesMacOS.yml b/.github/workflows/BuildSamplesMacOS.yml new file mode 100644 index 00000000..7640a8ea --- /dev/null +++ b/.github/workflows/BuildSamplesMacOS.yml @@ -0,0 +1,18 @@ +name: BuildSamplesMacOS + +on: + [push, pull_request] + +jobs: + macos_build_tests: + name: Build Samples (MacOS) + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Install Qt + uses: jurplel/install-qt-action@v2 + - name: Build Samples + run: | + qmake apps/sample/sample.pro + make -j4 diff --git a/.github/workflows/BuildSamplesUbuntu.yml b/.github/workflows/BuildSamplesUbuntu.yml new file mode 100644 index 00000000..9601bba4 --- /dev/null +++ b/.github/workflows/BuildSamplesUbuntu.yml @@ -0,0 +1,18 @@ +name: BuildSamplesUbuntu + +on: + [push, pull_request] + +jobs: + ubuntu_build_tests: + name: Build Samples (Ubuntu) + runs-on: ubuntu-latest #in order to deploy, need to use oldest supported version + + steps: + - uses: actions/checkout@v2 + - name: Install Qt + uses: jurplel/install-qt-action@v2 + - name: Build Samples + run: | + qmake apps/sample/sample.pro + make -j4 diff --git a/.github/workflows/BuildSamplesWindows.yml b/.github/workflows/BuildSamplesWindows.yml new file mode 100644 index 00000000..999008ea --- /dev/null +++ b/.github/workflows/BuildSamplesWindows.yml @@ -0,0 +1,29 @@ +name: BuildSamplesWindows + +on: [push, pull_request] + +jobs: + windows_build_tests: + name: Build Samples (Windows) + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Downlaod Jom + run: | + Invoke-WebRequest -Uri "http://download.qt.io/official_releases/jom/jom_1_1_3.zip" -OutFile "jom_1_1_3.zip" + New-Item -Name "jom" -ItemType "directory" + Expand-Archive -Path jom_1_1_3.zip -DestinationPath .\jom + echo "::add-path::$(Get-Location)\jom" + - name: Setup env variables + id: envs + run: | + echo '::set-env name=VCINSTALLDIR::C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC' + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + - name: Install Qt + uses: jurplel/install-qt-action@v2 + - name: Build Samples + run: | + qmake apps/sample/sample.pro + jom -j4 diff --git a/README.md b/README.md index 3bb80d94..f9065e7e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ The **_Visualization and Computer Graphics Library_** (VCGlib for short) is a open source, portable, C++, templated, no dependency, library for manipulation, processing, cleaning, simplifying triangle meshes. -[![Build Status](https://travis-ci.org/cnr-isti-vclab/vcglib.svg?branch=devel)](https://travis-ci.org/cnr-isti-vclab/vcglib) -[![Build status](https://ci.appveyor.com/api/projects/status/7k27s4k4xjmeowoe/branch/devel?svg=true)](https://ci.appveyor.com/project/cignoni/vcglib/branch/devel) +![BuildSamplesUbuntu](https://github.com/cnr-isti-vclab/vcglib/workflows/BuildSamplesUbuntu/badge.svg) +![BuildSamplesMacOS](https://github.com/cnr-isti-vclab/vcglib/workflows/BuildSamplesMacOS/badge.svg) +![BuildSamplesWindows](https://github.com/cnr-isti-vclab/vcglib/workflows/BuildSamplesWindows/badge.svg) The library, composed by more than 100k lines of code, is released under the GPL license, and it is the base of most of the software tools of the [Visual Computing Lab](http://vcg.isti.cnr.it) of the Italian National Research Council Institute ISTI, like MeshLab, metro and many others. diff --git a/apps/sample/colorspace/colorspace.pro b/apps/sample/colorspace/colorspace.pro index cb5f1612..76787855 100644 --- a/apps/sample/colorspace/colorspace.pro +++ b/apps/sample/colorspace/colorspace.pro @@ -1,7 +1,3 @@ +include(../common.pri) TARGET = colorspace -LIBPATH += -DEPENDPATH += . -INCLUDEPATH += . ../../.. -CONFIG += console stl -TEMPLATE = app -SOURCES += colorspace.cpp \ No newline at end of file +SOURCES += colorspace.cpp diff --git a/apps/sample/polygonmesh_dual/polygonmesh_dual.pro b/apps/sample/polygonmesh_dual/polygonmesh_dual.pro index e92bf0b3..169072de 100644 --- a/apps/sample/polygonmesh_dual/polygonmesh_dual.pro +++ b/apps/sample/polygonmesh_dual/polygonmesh_dual.pro @@ -1,7 +1,3 @@ -\macx: QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9 -QMAKE_MAC_SDK = macosx10.9 -CONFIG += c++11 - include(../common.pri) TARGET = polygonmesh_base SOURCES += polygonmesh_dual.cpp ../../../wrap/ply/plylib.cpp diff --git a/apps/sample/polygonmesh_optimize/polygonmesh_optimize.pro b/apps/sample/polygonmesh_optimize/polygonmesh_optimize.pro index bb127a8c..1bbfbcf3 100644 --- a/apps/sample/polygonmesh_optimize/polygonmesh_optimize.pro +++ b/apps/sample/polygonmesh_optimize/polygonmesh_optimize.pro @@ -1,7 +1,3 @@ -\macx: QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9 -QMAKE_MAC_SDK = macosx10.9 -CONFIG += c++11 - include(../common.pri) TARGET = polygonmesh_base SOURCES += polygonmesh_optimize.cpp ../../../wrap/ply/plylib.cpp diff --git a/apps/sample/sample_poly.pro b/apps/sample/sample_poly.pro deleted file mode 100644 index 249d29b4..00000000 --- a/apps/sample/sample_poly.pro +++ /dev/null @@ -1,10 +0,0 @@ - -TEMPLATE = subdirs -SUBDIRS = polygonmesh_base \ - polygonmesh_dual \ - polygonmesh_optimize \ -# polygonmesh_quadsimpl \ - polygonmesh_smooth \ - polygonmesh_zonohedra - -