Skip to content

test CI #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 39 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
68ee1fb
test CI
sylvainthery Jul 9, 2024
c514b4e
Update cmake-multi-platform.yml
sylvainthery Jul 12, 2024
1cd95c7
bugfix CI
sylvainthery Jul 12, 2024
a8624de
bugfix CI++
sylvainthery Jul 12, 2024
adb1fb3
bugfix CI++
sylvainthery Jul 12, 2024
a52b64d
bugfix CI+++
sylvainthery Jul 12, 2024
ed01feb
bugfix CI
sylvainthery Jul 12, 2024
088f4c0
ci test D.b
sylvainthery Jul 13, 2024
0504fba
ci test D.b
sylvainthery Jul 13, 2024
74e9734
ci test D.b
sylvainthery Jul 13, 2024
ba413fa
ci test D.b
sylvainthery Jul 13, 2024
49d48e8
ci test D.b
sylvainthery Jul 13, 2024
aa84395
ci test D.c
sylvainthery Jul 14, 2024
7849a17
ci test D.d
sylvainthery Jul 14, 2024
37caad0
ci test D.f
sylvainthery Jul 15, 2024
fb749eb
ci test D.g
sylvainthery Jul 15, 2024
29c2d8b
ci test D.g+
sylvainthery Jul 15, 2024
dc41260
test CI ...
sylvainthery Jul 15, 2024
e5f4367
test CI ...
sylvainthery Jul 15, 2024
2934dae
Merge branch 'compil_Linux' of github.com:sylvainthery/ASTex into com…
sylvainthery Jul 15, 2024
bd368c5
test SH-runner
sylvainthery Jul 15, 2024
b4dceba
test SH-runner
sylvainthery Jul 15, 2024
4652699
test SH-runner
sylvainthery Jul 15, 2024
119ac48
test SH-runner
sylvainthery Jul 15, 2024
ece8155
test SH-runner
sylvainthery Jul 15, 2024
0387091
test SH-runner
sylvainthery Jul 15, 2024
dd34496
test SH-runner
sylvainthery Jul 15, 2024
970efe0
test SH-runner
sylvainthery Jul 15, 2024
d9662fc
test SH-runner
sylvainthery Jul 15, 2024
48a3cf9
test SH-runner
sylvainthery Jul 15, 2024
25fd5d8
test SH-runner
sylvainthery Jul 15, 2024
64a7a44
test SH-runner
sylvainthery Jul 15, 2024
d71d1db
ci test SHRunner
sylvainthery Jul 15, 2024
7007bfc
ci test SHRunner
sylvainthery Jul 15, 2024
1697d69
VIrtualBox Self Hosted
sylvainthery Jul 16, 2024
7101256
bugfix compil
sylvainthery Aug 18, 2024
9bc2f84
set new self-hosted runners
sylvainthery Aug 18, 2024
b3d1ec4
test self-hosted runner
sylvainthery Aug 23, 2024
0d8f1c0
test self-hosted runner, bugfix
sylvainthery Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 25 additions & 46 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,38 @@ on:

jobs:

# build-linux:
# name: 'On Linux'
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@v1
# - name: 'Package installations'
# shell: bash
# run: |
# lsb_release -a
# sudo apt update
# sudo apt install libeigen3-dev libglfw3-dev libpng-dev libopenmpi-dev libopenexr-dev libimath-dev libinsighttoolkit5-dev libcgal-dev libsuitesparse-dev
# - name: 'Trying to compile ASTex on Linux'
# run: |
# mkdir Build
# cd Build
# cmake ..
# cmake --build .
build-linux:
name: 'On Linux'
runs-on: Ubuntu2404
steps:
- uses: actions/checkout@v1
- name: 'Trying to compile ASTex on Linux'
run: |
mkdir Build
cd Build
cmake ..
cmake --build . --parallel 8

build-OsX:
name: 'On Mac'
runs-on: pm_macOs14
steps:
- uses: actions/checkout@v1
- name: 'Trying to compile ASTEx on mac'
run: |
mkdir Build
cd Build
cmake ..
cmake --build . --parallel 8

build-windows:
name: 'On Windows'
runs-on: windows-2022
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
runs-on: pm_windows11
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v1
- name: 'install deps'
run: vcpkg install zlib:x64-windows-release libpng:x64-windows-release eigen3:x64-windows-release
glfw3:x64-windows-release imath:x64-windows-release openexr:x64-windows-release
itk:x64-windows-release cgal:x64-windows-release suitesparse:x64-windows-release
glew:x64-windows-release tbb:x64-windows-release
- name: 'Trying to compile ASTex on Windows'
run: |
mkdir Build
cd Build
cmake .. "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=Release"
cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake"
cmake --build .

# build-OsX:
# name: 'On Mac'
# runs-on: macos-13
# steps:
# - uses: actions/checkout@v1
# - name: 'install deps'
# run: brew install eigen glfw imath openexr openmpi itk cgal suitesparse tbb
# - name: 'Trying to compile ASTEx on mac'
# run: |
# mkdir Build
# cd Build
# cmake ..
# cmake --build . # This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
18 changes: 12 additions & 6 deletions ASTex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ find_package(PNG REQUIRED)
find_package(ITK CONFIG REQUIRED)
include(${ITK_USE_FILE})
find_package(OpenMP)
find_package(OpenMP)


find_package(Eigen3 REQUIRED)

Expand All @@ -16,16 +16,18 @@ if(NOT TARGET Imath::Imath)
endif()
find_package(OpenEXR CONFIG REQUIRED)


add_library( ${PROJECT_NAME} )


if(__APPLE__)
find_library(CORE_FOUNDATION CoreFoundation)
find_library(CARBON Carbon)
set (APPLE_LINK "${CORE_FOUNDATION} ${CARBON}")
target_include_directories(${PROJECT_NAME} BEFORE PUBLIC /usr/local/includeà)
target_link_directories (${PROJECT_NAME} PUBLIC /usr/local/lib)
endif()


add_library( ${PROJECT_NAME} )


target_sources (${PROJECT_NAME} PRIVATE
internal.h
image_common.h
Expand Down Expand Up @@ -123,7 +125,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include> $



set ( ASTEX_LIBRARIES ${ITK_LIBRARIES} ${FFTW_LIBRARIES} ${PNG_LIBRARIES} ${APPLE_LINK})
set ( ASTEX_LIBRARIES ${ITK_LIBRARIES} ${FFTW_LIBRARIES} ${PNG_LIBRARIES} ${APPLE_LINK} )

# if (NOT(MSVC OR APPLE))
# target_compile_options(${PROJECT_NAME} PUBLIC -pthread)
Expand All @@ -134,6 +136,9 @@ if(OpenMP_CXX_FOUND)
endif()

if(MSVC)
target_include_directories (${PROJECT_NAME} PUBLIC ${VCPKG_INSTALLED_DIR}/include)
target_link_directories (${PROJECT_NAME} PUBLIC ${VCPKG_INSTALLED_DIR}/lib)

target_compile_definitions(${PROJECT_NAME} PUBLIC -D_USE_MATH_DEFINES -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_SECURE_SCL=0 -D_SECURE_SCL_THROWS=0)
if(${BUILD_SHARED_LIBS})
target_compile_definitions(${PROJECT_NAME} PRIVATE "-DASTEX_DLL_EXPORT")
Expand Down Expand Up @@ -173,6 +178,7 @@ target_link_libraries (${PROJECT_NAME} PUBLIC
)



file(GLOB HEADERS "." "*.h" "*.hpp")
install(FILES ${HEADERS} DESTINATION include/ASTex/)
install(FILES "${ASTEX_SOURCE_DIR}/cmake/FindOpenEXR.cmake" "${ASTEX_SOURCE_DIR}/cmake/FindFFTW.cmake" DESTINATION lib/cmake/ASTex/)
Expand Down
2 changes: 1 addition & 1 deletion Algo/BLTS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)

project(LRPN LANGUAGES CXX)

#find_package(ASTex) ## done outside
find_package(ASTex) ## done outside

add_definitions(-DTEMPO_PATH=std::string\(\"${ASTEX_TEMPO_PATH}/\"\) )

Expand Down
29 changes: 17 additions & 12 deletions Algo/CCVT_CGAL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ find_package(glfw3 3.3 REQUIRED)
find_package(OpenGL REQUIRED)

if (WIN32)
target_include_directories (${PROJECT_NAME} PUBLIC ${VCPKG_INSTALLED_DIR}/include)
target_link_directories (${PROJECT_NAME} PUBLIC ${VCPKG_INSTALLED_DIR}/lib)

find_package(GLEW CONFIG REQUIRED)
find_package(metis CONFIG REQUIRED)
find_package(BLAS REQUIRED)
Expand Down Expand Up @@ -60,17 +63,17 @@ set(SRCS main_ccvt_cgal.cpp
ccvt_sites.cpp
ccvt_application.cpp)

add_executable(ccvt_cgal_chgrenier )
add_executable(${PROJECT_NAME} )

target_sources(ccvt_cgal_chgrenier PRIVATE ${SRCS} main_ccvt_cgal.cpp)
target_sources(${PROJECT_NAME} PRIVATE ${SRCS} main_ccvt_cgal.cpp)

target_include_directories(ccvt_cgal_chgrenier PRIVATE
target_include_directories(${PROJECT_NAME} PRIVATE
/usr/include/suitesparse
/usr/local/include/suitesparse)

target_link_directories(ccvt_cgal_chgrenier PRIVATE /usr/local/lib/)
target_link_directories(${PROJECT_NAME} PRIVATE /usr/local/lib/)

target_link_libraries(ccvt_cgal_chgrenier PRIVATE
target_link_libraries(${PROJECT_NAME} PRIVATE
CGAL::CGAL
${SUITESPARSE_LIBRARIES}
glfw
Expand All @@ -79,22 +82,24 @@ target_link_libraries(ccvt_cgal_chgrenier PRIVATE
${GLEW_LIBRARIES} )


target_include_directories (${PROJECT_NAME} PUBLIC /usr/local/include)
target_link_directories (${PROJECT_NAME} PUBLIC /usr/local/lib)

target_compile_features(ccvt_cgal_chgrenier PUBLIC cxx_std_17)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)

cgal_add_compilation_test(ccvt_cgal_chgrenier)
cgal_add_compilation_test(${PROJECT_NAME})

# nice vs solution
set_target_properties(ccvt_cgal_chgrenier PROPERTIES FOLDER Algo)
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER Algo)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/shaders DESTINATION "${ASTEX_TEMPO_PATH}")


#install(TARGETS ccvt_cgal_chgrenier
#install(TARGETS ${PROJECT_NAME}
# COMPONENT ink_edit_comp
# DESTINATION ink_edit
#)
#install(IMPORTED_RUNTIME_ARTIFACTS ccvt_cgal_chgrenier
#install(IMPORTED_RUNTIME_ARTIFACTS ${PROJECT_NAME}
# RUNTIME_DEPENDENCY_SET ink_edit_dep
# RUNTIME
# COMPONENT ink_edit_comp
Expand All @@ -111,7 +116,7 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/shaders DESTINATION "${ASTEX_TEMPO_PATH}")
#install(CODE [[
# file(GET_RUNTIME_DEPENDENCIES
# RESOLVED_DEPENDENCIES_VAR ink_edit_dep_var
# EXECUTABLES $<TARGET_FILE:ccvt_cgal_chgrenier>
# EXECUTABLES $<TARGET_FILE:${PROJECT_NAME}>
# )
# MESSAGE(STATUS "blabla ${ink_edit_dep_var}")
# file(INSTALL ${ink_edit_dep_var}
Expand All @@ -125,4 +130,4 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/shaders DESTINATION "${ASTEX_TEMPO_PATH}")
# DESTINATION ink_edit/lib
#)

set_target_properties(ccvt_cgal_chgrenier PROPERTIES INSTALL_RPATH $ORIGIN/lib)
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH $ORIGIN/lib)
4 changes: 2 additions & 2 deletions Algo/CCVT_CGAL/ccvt_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "timer.h"

#include <GL/glew.h>
#include <GL/gl.h>
//#include <GL/gl.h>
#include <GLFW/glfw3.h>

#define STB_IMAGE_WRITE_IMPLEMENTATION
Expand Down Expand Up @@ -1209,4 +1209,4 @@ void ccvt_application::computeProportions() {


m_histo=histo;
}
}
2 changes: 1 addition & 1 deletion Algo/CyclostationaryNoise/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)

project(PatchExchange LANGUAGES CXX)

#find_package(ASTex) ## done outside
find_package(ASTex) ## done outside

add_executable(cyclostationary_noise "")

Expand Down
8 changes: 3 additions & 5 deletions Algo/Graphcut/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
cmake_minimum_required(VERSION 3.5)

project(Graphcut)

add_definitions(-DTEMPO_PATH=std::string\(\"${ASTEX_TEMPO_PATH}/\"\) )


#find_package(ASTex) ## done outside
find_package(ASTex) ## done outside

add_executable(test_graphcut "")
add_executable(test_graphcut)
target_sources(test_graphcut PRIVATE test_graphcut.cpp graphcut.h graphcut.cpp maxflow/block.h maxflow/graph.h maxflow/graph.cpp maxflow/maxflow.cpp)
target_link_libraries(test_graphcut PRIVATE ASTex)

add_executable(test_graphcut_2 "")
add_executable(test_graphcut_2 )
target_sources(test_graphcut_2 PRIVATE test_graphcut_2.cpp graphcut.h graphcut.cpp maxflow/block.h maxflow/graph.h maxflow/graph.cpp maxflow/maxflow.cpp)
target_link_libraries(test_graphcut_2 PRIVATE ASTex)

Expand Down
2 changes: 1 addition & 1 deletion Algo/PatchExchange/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)

project(PatchExchange LANGUAGES CXX)

#find_package(ASTex) ## done outside
find_package(ASTex) ## done outside

add_executable(test_patch_exchange "")

Expand Down
Loading
Loading