From 03d2311724239c2799e171956c50074fd1d647ab Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Sat, 3 Feb 2024 11:26:39 +0100 Subject: [PATCH] Fix conan cgal selection and add GH Action. fixes #2 --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ CMakeLists.txt | 1 - conanfile.txt | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a7a3f90 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: build + +on: [push, workflow_dispatch, pull_request] + +jobs: + linux-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: lukka/get-cmake@latest + + - name: Install Conan + id: conan + uses: turtlebrowser/get-conan@main + + - name: Install dependencies + run: | + conan profile detect --force + conan install conanfile.txt --build=missing + + - uses: lukka/run-cmake@v10 + with: + configurePreset: conan-release + configurePresetAdditionalArgs: "['-DCMAKE_CXX_COMPILER=g++-13']" + buildPreset: conan-release + + - uses: actions/upload-artifact@v4 + with: + name: t3d2map + path: t3d2map + compression-level: 9 \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 96bac98..17f90b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,6 @@ project(t3d2map CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_BUILD_TYPE debug) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -g -O0") # Qt5 component for basic viewer diff --git a/conanfile.txt b/conanfile.txt index ec8480d..ef12c5f 100644 --- a/conanfile.txt +++ b/conanfile.txt @@ -1,4 +1,5 @@ [requires] +cgal/5.5.3 [generators] CMakeDeps