-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
343 additions
and
333 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
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,77 @@ | ||
name: Linux | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
schedule: | ||
- cron: '10 12 * * 0' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BUILD_DIR: gtsam/3rdparty/linux | ||
VCPKG_ROOT: gtsam/3rdparty/linux/vcpkg | ||
VCPKG_LINK: https://github.com/microsoft/vcpkg/ | ||
VCPKG_CONFIGS: gtsam/3rdparty/vcpkg_configs | ||
BINARY_CACHE: gtsam/3rdparty/buildCache/linux | ||
|
||
jobs: | ||
build: | ||
name: vcpkg-ubuntu-22.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
gtsam/3rdparty/buildCache/linux | ||
key: linux-${{ hashFiles('.github/workflows/linux.yml') }} | ||
|
||
- name: Init vcpkg | ||
if: success() | ||
run: | | ||
mkdir -p $BUILD_DIR | ||
git -C $BUILD_DIR clone $VCPKG_LINK | ||
$VCPKG_ROOT/bootstrap-vcpkg.sh | ||
$VCPKG_ROOT/vcpkg fetch ninja | ||
- name: Vcpkg build & cmake config | ||
if: success() | ||
run: | | ||
export VCPKG_DEFAULT_BINARY_CACHE="$PWD/$BINARY_CACHE" | ||
mkdir -p $VCPKG_DEFAULT_BINARY_CACHE | ||
cmake . -B build \ | ||
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \ | ||
-DVCPKG_MANIFEST_DIR=$VCPKG_CONFIGS/manifest \ | ||
-DVCPKG_MANIFEST_INSTALL=$VCPKG_ROOT/installed \ | ||
-DVCPKG_OVERLAY_TRIPLETS=$VCPKG_CONFIGS/triplets \ | ||
-DVCPKG_TARGET_TRIPLET=x64-linux \ | ||
-DVCPKG_INSTALL_OPTIONS=--clean-after-build \ | ||
-DGTSAM_BUILD_EXAMPLES_ALWAYS=ON \ | ||
-DGTSAM_ROT3_EXPMAP=ON \ | ||
-DGTSAM_POSE3_EXPMAP=ON \ | ||
-DGTSAM_BUILD_PYTHON=ON \ | ||
-DGTSAM_BUILD_TESTS=ON \ | ||
-DGTSAM_BUILD_UNSTABLE=ON \ | ||
-DGTSAM_USE_SYSTEM_EIGEN=ON \ | ||
-DGTSAM_USE_SYSTEM_METIS=ON \ | ||
-DGTSAM_SUPPORT_NESTED_DISSECTION=ON | ||
- name: Cmake build | ||
if: success() | ||
run: | | ||
cmake --build build --config Release -j 2 | ||
- name: Run tests | ||
if: success() | ||
run: | | ||
# Currently tests aren't compile. Tests needed to be fix, then remove these comments. | ||
# cmake --build build --target check -j 2 |
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,85 @@ | ||
name: OSX | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
schedule: | ||
- cron: '10 12 * * 0' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BUILD_DIR: gtsam/3rdparty/osx | ||
VCPKG_ROOT: gtsam/3rdparty/osx/vcpkg | ||
VCPKG_LINK: https://github.com/microsoft/vcpkg/ | ||
VCPKG_CONFIGS: gtsam/3rdparty/vcpkg_configs | ||
BINARY_CACHE: gtsam/3rdparty/buildCache/osx | ||
|
||
jobs: | ||
build: | ||
name: vcpkg-macos-12 | ||
runs-on: macos-12 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
gtsam/3rdparty/buildCache/osx | ||
key: osx-${{ hashFiles('.github/workflows/osx.yml') }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo xcode-select -switch /Applications/Xcode.app | ||
- name: Install python packages | ||
if: success() | ||
run: | | ||
pip3 install pyparsing | ||
- name: Init vcpkg | ||
if: success() | ||
run: | | ||
mkdir -p $BUILD_DIR | ||
git -C $BUILD_DIR clone $VCPKG_LINK | ||
$VCPKG_ROOT/bootstrap-vcpkg.sh | ||
- name: Vcpkg build & cmake config | ||
if: success() | ||
run: | | ||
export VCPKG_DEFAULT_BINARY_CACHE="$PWD/$BINARY_CACHE" | ||
mkdir -p $VCPKG_DEFAULT_BINARY_CACHE | ||
cmake . -B build \ | ||
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \ | ||
-DVCPKG_MANIFEST_DIR=$VCPKG_CONFIGS/manifest \ | ||
-DVCPKG_MANIFEST_INSTALL=$VCPKG_ROOT/installed \ | ||
-DVCPKG_OVERLAY_TRIPLETS=$VCPKG_CONFIGS/triplets \ | ||
-DVCPKG_TARGET_TRIPLET=x64-osx \ | ||
-DVCPKG_INSTALL_OPTIONS=--clean-after-build \ | ||
-DGTSAM_BUILD_EXAMPLES_ALWAYS=ON \ | ||
-DGTSAM_ROT3_EXPMAP=ON \ | ||
-DGTSAM_POSE3_EXPMAP=ON \ | ||
-DGTSAM_BUILD_PYTHON=ON \ | ||
-DGTSAM_BUILD_TESTS=ON \ | ||
-DGTSAM_BUILD_UNSTABLE=ON \ | ||
-DGTSAM_USE_SYSTEM_EIGEN=ON \ | ||
-DGTSAM_USE_SYSTEM_METIS=ON \ | ||
-DGTSAM_SUPPORT_NESTED_DISSECTION=ON | ||
- name: Cmake build | ||
if: success() | ||
run: | | ||
cmake --build build --config Release -j 2 | ||
- name: Run tests | ||
if: success() | ||
run: | | ||
# Currently tests aren't compile. Tests needed to be fix, then remove these comments. | ||
# cmake --build build --target check -j 2 |
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,90 @@ | ||
name: Windows | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
schedule: | ||
- cron: '10 12 * * 0' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BUILD_DIR: gtsam\3rdparty\windows | ||
VCPKG_ROOT: gtsam\3rdparty\windows\vcpkg | ||
VCPKG_LINK: https://github.com/microsoft/vcpkg/ | ||
VCPKG_CONFIGS: gtsam\3rdparty\vcpkg_configs | ||
BINARY_CACHE: gtsam\3rdparty\buildCache\windows | ||
PYTHON: c:\hostedtoolcache\windows\Python\3.11.1\x64\Scripts\pip3.exe | ||
|
||
jobs: | ||
build: | ||
name: vcpkg-windows-2022 | ||
runs-on: windows-2022 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
gtsam/3rdparty/buildCache/windows | ||
key: windows-${{ hashFiles('.github/workflows/windows.yml') }} | ||
|
||
- name: Install python packages | ||
if: success() | ||
shell: cmd | ||
run: | | ||
%PYTHON% install pyparsing | ||
- name: Fix vcpkg | ||
run: vcpkg.exe integrate remove | ||
|
||
- name: Init vcpkg | ||
if: success() | ||
shell: cmd | ||
run: | | ||
mkdir -p %BUILD_DIR% | ||
git -C %BUILD_DIR% clone %VCPKG_LINK% | ||
%VCPKG_ROOT%\bootstrap-vcpkg.bat | ||
- name: Vcpkg build & cmake config | ||
if: success() | ||
shell: cmd | ||
run: | | ||
set "VCPKG_DEFAULT_BINARY_CACHE=%CD%\%BINARY_CACHE%" | ||
mkdir %VCPKG_DEFAULT_BINARY_CACHE% | ||
cmake . -B build ^ | ||
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake ^ | ||
-DVCPKG_MANIFEST_DIR=%VCPKG_CONFIGS%\manifest ^ | ||
-DVCPKG_MANIFEST_INSTALL=%VCPKG_ROOT%\installed ^ | ||
-DVCPKG_OVERLAY_TRIPLETS=%VCPKG_CONFIGS%\triplets ^ | ||
-DVCPKG_TARGET_TRIPLET=x64-windows ^ | ||
-DVCPKG_INSTALL_OPTIONS=--clean-after-build ^ | ||
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF ^ | ||
-DGTSAM_ROT3_EXPMAP=OFF ^ | ||
-DGTSAM_POSE3_EXPMAP=OFF ^ | ||
-DGTSAM_BUILD_PYTHON=OFF ^ | ||
-DGTSAM_BUILD_TESTS=ON ^ | ||
-DGTSAM_BUILD_UNSTABLE=OFF ^ | ||
-DGTSAM_USE_SYSTEM_EIGEN=ON ^ | ||
-DGTSAM_USE_SYSTEM_METIS=ON ^ | ||
-DGTSAM_SUPPORT_NESTED_DISSECTION=ON | ||
- name: Cmake build | ||
if: success() | ||
shell: cmd | ||
run: | | ||
cmake --build build --config Release -j 2 | ||
- name: Run tests | ||
if: success() | ||
shell: cmd | ||
run: | | ||
:: Currently tests aren't compile. Tests needed to be fix, then remove these comments. | ||
:: cmake --build build --target check -j 2 |
Oops, something went wrong.