-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
836df4a
commit 5e54e6c
Showing
6 changed files
with
45 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/zsh | ||
set -e | ||
eval "$(/opt/homebrew/bin/brew shellenv)" | ||
numcpus=$(sysctl -n hw.logicalcpu) | ||
mkdir build && cd build | ||
python3.12 -m venv python-env | ||
source python-env/bin/activate | ||
pip install -r ../requirements.txt | ||
cmake .. -DBUILD_TESTS=ON -DWERROR=ON -DCMAKE_UNITY_BUILD=ON | ||
cmake --build . -- -j ${numcpus} | ||
cmake --build . -t tests -- -j ${numcpus} | ||
cd .. | ||
python -m build -w |
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,16 @@ | ||
set -e | ||
export CXX=$(which g++) | ||
export CC=$(which gcc) | ||
export PYTHON_DIR=/opt/python/cp312-cp312 | ||
|
||
# Compile library and Python extension + testing | ||
numcpus=$(nproc) | ||
mkdir build && cd build | ||
cmake .. -DBUILD_TESTS=ON -DWERROR=ON -DPython_ROOT_DIR=$PYTHON_DIR -DCMAKE_UNITY_BUILD=ON | ||
cmake --build . -- -j ${numcpus} -- VERBOSE=1 | ||
cmake --build . -t tests -- -j${numcpus} -- VERBOSE=1 | ||
|
||
# Create Python wheel | ||
cd .. && mkdir output | ||
$PYTHON_DIR/bin/pip wheel . -w output | ||
auditwheel repair output/jupedsim*whl |
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,14 @@ | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
call C:\Python\Python312\python.exe -m venv venv312 | ||
call venv312\Scripts\activate.bat | ||
pip install -r requirements.txt | ||
:: Build time in CI is currently too long to justify building twice just for unit tests | ||
::mkdir build | ||
::set PYTHONPATH=%cd%\python_modules\jupedsim;%cd%\build\lib\Release | ||
::cd build | ||
::echo %PYTHONPATH% | ||
::cmake .. -DBUILD_TESTS=ON -DCMAKE_UNITY_BUILD=ON | ||
::cmake --build . --config Release | ||
::cmake --build . --config Release --target unittests | ||
::cd .. | ||
python -m build -w |
This file was deleted.
Oops, something went wrong.
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