-
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
23 changed files
with
659 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: Linux | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" # Pull request for all branches | ||
schedule: | ||
- cron: '10 12 * * 0' | ||
|
||
# Every time you make a push to your PR, it cancel immediately the previous checks, | ||
# and start a new one. The other runner will be available more quickly to your PR. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: vcpkg-ubuntu-${{ matrix.type }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- type: x64 | ||
BUILD_DIR: gtsam/3rdparty/vcpkg/cache | ||
VCPKG_ROOT: gtsam/3rdparty/vcpkg/cache/vcpkg | ||
VCPKG_LINK: https://github.com/microsoft/vcpkg/ | ||
VCPKG_CONFIGS: gtsam/3rdparty/vcpkg | ||
BINARY_CACHE: gtsam/3rdparty/cache/linux | ||
env: | ||
BUILD_DIR: ${{ matrix.BUILD_DIR }} | ||
VCPKG_ROOT: ${{ matrix.VCPKG_ROOT }} | ||
VCPKG_LINK: ${{ matrix.VCPKG_LINK }} | ||
VCPKG_CONFIGS: ${{ matrix.VCPKG_CONFIGS }} | ||
BINARY_CACHE: ${{ matrix.BINARY_CACHE }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
${{ matrix.BINARY_CACHE }} | ||
key: linux-${{ hashFiles('.github/workflows/linux.yml') }} | ||
restore-keys: linux-${{ hashFiles('.github/workflows/linux.yml') }} | ||
|
||
- name: Install ninja | ||
if: success() | ||
run: | | ||
sudo apt install -y ninja-build | ||
ninja --version | ||
whereis ninja | ||
- name: Init vcpkg | ||
if: success() | ||
run: | | ||
mkdir -p $BUILD_DIR | ||
git -C $BUILD_DIR clone $VCPKG_LINK | ||
- name: Vcpkg build & cmake config | ||
if: success() | ||
run: | | ||
export VCPKG_BINARY_SOURCES="clear;files,$PWD/$BINARY_CACHE,readwrite;" | ||
mkdir -p $BINARY_CACHE | ||
export CMAKE_GENERATOR=Ninja | ||
cmake . -B build \ | ||
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \ | ||
-DVCPKG_MANIFEST_DIR=$VCPKG_CONFIGS/manifest \ | ||
-DVCPKG_INSTALLED_DIR=$VCPKG_ROOT/installed \ | ||
-DVCPKG_OVERLAY_TRIPLETS=$VCPKG_CONFIGS/triplets \ | ||
-DVCPKG_TARGET_TRIPLET=x64-linux-release \ | ||
-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: Save cache dependencies | ||
id: cache-save | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: | | ||
${{ matrix.BINARY_CACHE }} | ||
key: linux-${{ hashFiles('.github/workflows/linux.yml') }}-${{ hashFiles('gtsam/3rdparty/vcpkg/cache/vcpkg/installed/vcpkg/updates/*') }} | ||
|
||
|
||
- name: Cmake build | ||
if: success() | ||
run: | | ||
cmake --build build --config Release -j 2 | ||
- name: Run tests | ||
if: success() | ||
run: | | ||
# metis test are failing. remove this comment when fix it. | ||
# 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,109 @@ | ||
name: OSX | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" # Pull request for all branches | ||
schedule: | ||
- cron: '10 12 * * 0' | ||
|
||
# Every time you make a push to your PR, it cancel immediately the previous checks, | ||
# and start a new one. The other runner will be available more quickly to your PR. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: vcpkg-macos-${{ matrix.type }} | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- type: x64 | ||
BUILD_DIR: gtsam/3rdparty/vcpkg/cache | ||
VCPKG_ROOT: gtsam/3rdparty/vcpkg/cache/vcpkg | ||
VCPKG_LINK: https://github.com/microsoft/vcpkg/ | ||
VCPKG_CONFIGS: gtsam/3rdparty/vcpkg | ||
BINARY_CACHE: gtsam/3rdparty/cache/osx | ||
env: | ||
BUILD_DIR: ${{ matrix.BUILD_DIR }} | ||
VCPKG_ROOT: ${{ matrix.VCPKG_ROOT }} | ||
VCPKG_LINK: ${{ matrix.VCPKG_LINK }} | ||
VCPKG_CONFIGS: ${{ matrix.VCPKG_CONFIGS }} | ||
BINARY_CACHE: ${{ matrix.BINARY_CACHE }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
${{ matrix.BINARY_CACHE }} | ||
key: osx-${{ hashFiles('.github/workflows/osx.yml') }} | ||
restore-keys: 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: Install ninja | ||
if: success() | ||
run: | | ||
brew install ninja | ||
ninja --version | ||
whereis ninja | ||
- name: Init vcpkg | ||
if: success() | ||
run: | | ||
mkdir -p $BUILD_DIR | ||
git -C $BUILD_DIR clone $VCPKG_LINK | ||
- name: Vcpkg build & cmake config | ||
if: success() | ||
run: | | ||
export VCPKG_BINARY_SOURCES="clear;files,$PWD/$BINARY_CACHE,readwrite;" | ||
mkdir -p $BINARY_CACHE | ||
export CMAKE_GENERATOR=Ninja | ||
cmake . -B build \ | ||
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \ | ||
-DVCPKG_MANIFEST_DIR=$VCPKG_CONFIGS/manifest \ | ||
-DVCPKG_INSTALLED_DIR=$VCPKG_ROOT/installed \ | ||
-DVCPKG_OVERLAY_TRIPLETS=$VCPKG_CONFIGS/triplets \ | ||
-DVCPKG_TARGET_TRIPLET=x64-osx-release \ | ||
-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: Save cache dependencies | ||
id: cache-save | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: | | ||
${{ matrix.BINARY_CACHE }} | ||
key: osx-${{ hashFiles('.github/workflows/osx.yml') }}-${{ hashFiles('gtsam/3rdparty/vcpkg/cache/vcpkg/installed/vcpkg/updates/*') }} | ||
|
||
- name: Cmake build | ||
if: success() | ||
run: | | ||
cmake --build build --config Release -j 2 | ||
- name: Run tests | ||
if: success() | ||
run: | | ||
# metis test are failing. remove this comment when fix it. | ||
# cmake --build build --target check -j 2 |
Oops, something went wrong.