Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jul 11, 2024
1 parent cd2a6ee commit a10f8d8
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 268 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,36 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: |
# LLVM (clang) 9/14 is not in Bionic's repositories so we add the official LLVM repository.
if [ "${{ matrix.compiler }}" = "clang" ]; then
# (ipv4|ha).pool.sks-keyservers.net is the SKS GPG global keyserver pool
# ipv4 avoids potential timeouts because of crappy IPv6 infrastructure
# 15CF4D18AF4F7421 is the GPG key for the LLVM apt repository
# This key is not in the keystore by default for Ubuntu so we need to add it.
LLVM_KEY=15CF4D18AF4F7421
gpg --keyserver keyserver.ubuntu.com --recv-key $LLVM_KEY || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key $LLVM_KEY
gpg -a --export $LLVM_KEY | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
fi
# - name: Install Dependencies
# run: |
# # LLVM (clang) 9/14 is not in Bionic's repositories so we add the official LLVM repository.
# if [ "${{ matrix.compiler }}" = "clang" ]; then
# # (ipv4|ha).pool.sks-keyservers.net is the SKS GPG global keyserver pool
# # ipv4 avoids potential timeouts because of crappy IPv6 infrastructure
# # 15CF4D18AF4F7421 is the GPG key for the LLVM apt repository
# # This key is not in the keystore by default for Ubuntu so we need to add it.
# LLVM_KEY=15CF4D18AF4F7421
# gpg --keyserver keyserver.ubuntu.com --recv-key $LLVM_KEY || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key $LLVM_KEY
# gpg -a --export $LLVM_KEY | sudo apt-key add -
# sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
# fi

sudo apt-get -y update
sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libicu-dev ninja-build
# sudo apt-get -y update
# sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libicu-dev ninja-build

if [ "${{ matrix.compiler }}" = "gcc" ]; then
sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
else
sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
fi
# if [ "${{ matrix.compiler }}" = "gcc" ]; then
# sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
# echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
# echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
# else
# sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
# echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
# echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
# fi

- name: Install Boost
run: |
sudo apt-get -y install libboost-all-dev
# - name: Install Boost
# run: |
# sudo apt-get -y install libboost-all-dev

- name: Build and Test
run: bash .github/scripts/unix.sh -t
# - name: Build and Test
# run: bash .github/scripts/unix.sh -t
18 changes: 9 additions & 9 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: |
brew install cmake ninja
brew install boost
sudo xcode-select -switch /Applications/Xcode.app
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Build and Test
run: bash .github/scripts/unix.sh -t
# - name: Install Dependencies
# run: |
# brew install cmake ninja
# brew install boost
# sudo xcode-select -switch /Applications/Xcode.app
# echo "CC=clang" >> $GITHUB_ENV
# echo "CXX=clang++" >> $GITHUB_ENV
# - name: Build and Test
# run: bash .github/scripts/unix.sh -t
216 changes: 108 additions & 108 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,111 +67,111 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install (Linux)
if: runner.os == 'Linux'
run: |
if [ "${{ matrix.compiler }}" = "clang" ] && [ "${{ matrix.version }}" = "9" ]; then
# (ipv4|ha).pool.sks-keyservers.net is the SKS GPG global keyserver pool
# ipv4 avoids potential timeouts because of crappy IPv6 infrastructure
# 15CF4D18AF4F7421 is the GPG key for the LLVM apt repository
# This key is not in the keystore by default for Ubuntu so we need to add it.
LLVM_KEY=15CF4D18AF4F7421
gpg --keyserver keyserver.ubuntu.com --recv-key $LLVM_KEY || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key $LLVM_KEY
gpg -a --export $LLVM_KEY | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
fi
sudo apt-get -y update
sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libboost-all-dev ninja-build
if [ "${{ matrix.compiler }}" = "gcc" ]; then
sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
else
sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
fi
- name: Install (macOS)
if: runner.os == 'macOS'
run: |
brew tap ProfFan/robotics
brew install cmake ninja
brew install boost
sudo xcode-select -switch /Applications/Xcode.app
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Setup msbuild (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x${{matrix.platform}}
toolset: 14.40

- name: cl version (Windows)
if: runner.os == 'Windows'
shell: cmd
run: cl

- name: Setup python (Windows)
uses: actions/setup-python@v5
if: runner.os == 'Windows'
with:
python-version: ${{ matrix.python_version }}

- name: Install ninja (Windows)
if: runner.os == 'Windows'
shell: bash
run: |
choco install ninja
ninja --version
where ninja
- name: Install Boost (Windows)
if: runner.os == 'Windows'
shell: powershell
run: |
# Snippet from: https://github.com/actions/virtual-environments/issues/2667
$BOOST_PATH = "C:\hostedtoolcache\windows\Boost\$env:BOOST_VERSION\x86_64"
# Use the prebuilt binary for Windows
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/$env:BOOST_VERSION/$env:BOOST_EXE-${{matrix.platform}}.exe"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$BOOST_PATH"
# Set the BOOST_ROOT variable
echo "BOOST_ROOT=$BOOST_PATH" >> $env:GITHUB_ENV
- name: Set GTSAM_WITH_TBB Flag
if: matrix.flag == 'tbb'
run: |
echo "GTSAM_WITH_TBB=ON" >> $GITHUB_ENV
echo "GTSAM Uses TBB"
- name: Set Swap Space (Linux)
if: runner.os == 'Linux'
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 6

- name: Install System Dependencies (Linux, macOS)
if: runner.os != 'Windows'
run: |
bash .github/scripts/python.sh -d
- name: Install Python Dependencies
shell: bash
run: python$PYTHON_VERSION -m pip install -r python/dev_requirements.txt

- name: Build
shell: bash
run: |
bash .github/scripts/python.sh -b
- name: Test
shell: bash
run: |
bash .github/scripts/python.sh -t
# - name: Install (Linux)
# if: runner.os == 'Linux'
# run: |
# if [ "${{ matrix.compiler }}" = "clang" ] && [ "${{ matrix.version }}" = "9" ]; then
# # (ipv4|ha).pool.sks-keyservers.net is the SKS GPG global keyserver pool
# # ipv4 avoids potential timeouts because of crappy IPv6 infrastructure
# # 15CF4D18AF4F7421 is the GPG key for the LLVM apt repository
# # This key is not in the keystore by default for Ubuntu so we need to add it.
# LLVM_KEY=15CF4D18AF4F7421
# gpg --keyserver keyserver.ubuntu.com --recv-key $LLVM_KEY || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key $LLVM_KEY
# gpg -a --export $LLVM_KEY | sudo apt-key add -
# sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
# fi

# sudo apt-get -y update
# sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libboost-all-dev ninja-build

# if [ "${{ matrix.compiler }}" = "gcc" ]; then
# sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
# echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
# echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
# else
# sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
# echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
# echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
# fi

# - name: Install (macOS)
# if: runner.os == 'macOS'
# run: |
# brew tap ProfFan/robotics
# brew install cmake ninja
# brew install boost
# sudo xcode-select -switch /Applications/Xcode.app
# echo "CC=clang" >> $GITHUB_ENV
# echo "CXX=clang++" >> $GITHUB_ENV

# - name: Setup msbuild (Windows)
# if: runner.os == 'Windows'
# uses: ilammy/msvc-dev-cmd@v1
# with:
# arch: x${{matrix.platform}}
# toolset: 14.40

# - name: cl version (Windows)
# if: runner.os == 'Windows'
# shell: cmd
# run: cl

# - name: Setup python (Windows)
# uses: actions/setup-python@v5
# if: runner.os == 'Windows'
# with:
# python-version: ${{ matrix.python_version }}

# - name: Install ninja (Windows)
# if: runner.os == 'Windows'
# shell: bash
# run: |
# choco install ninja
# ninja --version
# where ninja

# - name: Install Boost (Windows)
# if: runner.os == 'Windows'
# shell: powershell
# run: |
# # Snippet from: https://github.com/actions/virtual-environments/issues/2667
# $BOOST_PATH = "C:\hostedtoolcache\windows\Boost\$env:BOOST_VERSION\x86_64"

# # Use the prebuilt binary for Windows
# $Url = "https://sourceforge.net/projects/boost/files/boost-binaries/$env:BOOST_VERSION/$env:BOOST_EXE-${{matrix.platform}}.exe"
# (New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
# Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$BOOST_PATH"

# # Set the BOOST_ROOT variable
# echo "BOOST_ROOT=$BOOST_PATH" >> $env:GITHUB_ENV

# - name: Set GTSAM_WITH_TBB Flag
# if: matrix.flag == 'tbb'
# run: |
# echo "GTSAM_WITH_TBB=ON" >> $GITHUB_ENV
# echo "GTSAM Uses TBB"

# - name: Set Swap Space (Linux)
# if: runner.os == 'Linux'
# uses: pierotofy/set-swap-space@master
# with:
# swap-size-gb: 6

# - name: Install System Dependencies (Linux, macOS)
# if: runner.os != 'Windows'
# run: |
# bash .github/scripts/python.sh -d

# - name: Install Python Dependencies
# shell: bash
# run: python$PYTHON_VERSION -m pip install -r python/dev_requirements.txt

# - name: Build
# shell: bash
# run: |
# bash .github/scripts/python.sh -b

# - name: Test
# shell: bash
# run: |
# bash .github/scripts/python.sh -t
Loading

0 comments on commit a10f8d8

Please sign in to comment.