-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to conan2 * Avoid building image library * Fix build errors * Update pipeline to build with conan2 Also make it simpler for now * Temporarily disable tests * Use correct glfw link target * Avoid boost using deprecated functions on mac * Disable metal texture as image library is disabled * Update gtest to 1.15.0 * Simplify and move build script to own file * Rename profiles to reflect pipeline's os variable * Change build.sh permissions * Simplify pipeline and add debug messages to build.sh * Remove extra pagoda directory * Change plugin test to use cmake generators * Show ctest output on failure * Dont run pgscript tests on windows * Dont run tests on windows --------- Co-authored-by: Diego Jesus <diego@fedora.tail2e39f.ts.net> Co-authored-by: Diego <diego@localhost.localdomain> Co-authored-by: Diego Jesus <diego.a.r.js@gmail.com>
- Loading branch information
1 parent
0b22d4a
commit b5a85fd
Showing
50 changed files
with
439 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@echo off | ||
|
||
set WORKSPACE=%1% | ||
set OS=%2% | ||
set COMPILER=%3% | ||
|
||
set PY_VENV=%WORKSPACE%\buildenv | ||
set PAGODA_ROOT=%WORKSPACE%\pagoda | ||
set BUILD_ROOT=%WORKSPACE%\build | ||
|
||
set CONAN_PROFILE_ROOT=%PAGODA_ROOT%\tools\profiles | ||
set CONAN_PROFILE=%CONAN_PROFILE_ROOT%\%OS%_%COMPILER%_Release_gh.txt | ||
|
||
echo "########################################" | ||
echo "Running build.sh" | ||
echo " workspace: %WORKSPACE%" | ||
echo " os: %OS%" | ||
echo " compiler: %COMPILER%" | ||
echo " venv: %PY_VENV%" | ||
echo " pagoda root: %PAGODA_ROOT%" | ||
echo " profile root: %CONAN_PROFILE_ROOT%" | ||
echo " profile: %CONAN_PROFILE%" | ||
echo " build root: %BUILD_ROOT%" | ||
echo "########################################" | ||
|
||
REM ---------------------------------------- | ||
REM install dependencies | ||
REM ---------------------------------------- | ||
pip3 install wheel setuptools numpy | ||
pip3 install -r %WORKSPACE%/pagoda/requirements.txt | ||
|
||
REM ---------------------------------------- | ||
REM install conan dependencies | ||
REM ---------------------------------------- | ||
git -C %PAGODA_ROOT% submodule update --init --recursive | ||
conan install ^ | ||
--profile:build=%CONAN_PROFILE% ^ | ||
--profile:host=%CONAN_PROFILE% ^ | ||
-of %BUILD_ROOT% ^ | ||
%PAGODA_ROOT% ^ | ||
--build=missing | ||
|
||
REM ---------------------------------------- | ||
REM Build Pagoda | ||
REM ---------------------------------------- | ||
cmake -S %PAGODA_ROOT% --preset conan-default | ||
cmake --build %BUILD_ROOT% --config Release -j 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/sh | ||
|
||
WORKSPACE=${1} | ||
OS=${2} | ||
COMPILER=${3} | ||
|
||
PY_VENV=${WORKSPACE}/buildenv | ||
PAGODA_ROOT=${WORKSPACE}/pagoda | ||
BUILD_ROOT=${WORKSPACE}/build | ||
|
||
CONAN_PROFILE_ROOT=${PAGODA_ROOT}/tools/profiles | ||
CONAN_PROFILE=${CONAN_PROFILE_ROOT}/${OS}_${COMPILER}_Release_gh.txt | ||
|
||
echo "########################################" | ||
echo "Running build.sh" | ||
echo " workspace: ${WORKSPACE}" | ||
echo " os: ${OS}" | ||
echo " compiler: ${COMPILER}" | ||
echo " venv: ${PY_VENV}" | ||
echo " pagoda root: ${PAGODA_ROOT}" | ||
echo " profile root: ${CONAN_PROFILE_ROOT}" | ||
echo " profile: ${CONAN_PROFILE}" | ||
echo " build root: ${BUILD_ROOT}" | ||
echo "########################################" | ||
|
||
#---------------------------------------- | ||
# install dependencies | ||
#---------------------------------------- | ||
python3 -m venv ${PY_VENV} | ||
source ${PY_VENV}/bin/activate | ||
pip3 install wheel setuptools numpy | ||
pip3 install -r ${WORKSPACE}/pagoda/requirements.txt | ||
|
||
#---------------------------------------- | ||
# install conan dependencies | ||
#---------------------------------------- | ||
git -C ${PAGODA_ROOT} submodule update --init --recursive | ||
conan install \ | ||
--profile:build=${CONAN_PROFILE} \ | ||
--profile:host=${CONAN_PROFILE} \ | ||
-of ${BUILD_ROOT} \ | ||
${PAGODA_ROOT} \ | ||
--build=missing | ||
|
||
#---------------------------------------- | ||
# Build Pagoda | ||
#---------------------------------------- | ||
cmake -S${PAGODA_ROOT} --preset conan-release | ||
cmake --build ${BUILD_ROOT} -j 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
wheel | ||
setuptools | ||
numpy | ||
conan==2.6.0 | ||
cmake==3.30.2 |
Oops, something went wrong.