-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new ci * fix url
- Loading branch information
Showing
11 changed files
with
142 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git/* | ||
docs/* | ||
docker/* |
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,38 @@ | ||
name: gendoc | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
gendoc: | ||
name: Generate documentation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- name : Install dependencies | ||
run: sudo apt-get install -y git cmake build-essential doxygen graphviz python3-dev | ||
|
||
- name: Install python dependencies | ||
run: python -m pip install mkdocs mkdocs-material | ||
|
||
- name: Generate documentation | ||
run: cd docs && make all | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: site | ||
path: ./site/* | ||
|
||
- name: Deploy documentation | ||
run: cd docs && make deploy |
This file was deleted.
Oops, something went wrong.
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
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,20 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_points:jammy_cuda12.2 | ||
FROM $BASE_IMAGE | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
libfmt-dev libspdlog-dev libopencv-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# with CUDA | ||
COPY . /root/glim | ||
WORKDIR /root/glim/build | ||
RUN cmake .. \ | ||
-DBUILD_WITH_CUDA=ON \ | ||
-DBUILD_WITH_VIEWER=ON \ | ||
-DBUILD_WITH_MARCH_NATIVE=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
RUN make -j$(nproc) | ||
|
||
CMD ["bash"] |
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,22 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_points:jammy | ||
FROM $BASE_IMAGE | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
libfmt-dev libspdlog-dev libopencv-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld 50 | ||
|
||
# with CUDA | ||
COPY . /root/glim | ||
WORKDIR /root/glim/build | ||
RUN cmake .. \ | ||
-DBUILD_WITH_CUDA=ON \ | ||
-DBUILD_WITH_VIEWER=ON \ | ||
-DBUILD_WITH_MARCH_NATIVE=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
RUN make -j$(nproc) | ||
|
||
CMD ["bash"] |
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,22 @@ | ||
.PHONY: help | ||
help: | ||
@echo "make cpp|all" | ||
|
||
.PHONY: cpp | ||
cpp: | ||
@echo "Building C++ documentation..." | ||
doxygen Doxyfile doc_cpp | ||
|
||
.PHONY: mkdocs | ||
mkdocs: | ||
@echo "Building MkDocs documentation..." | ||
cd .. && mkdocs build | ||
|
||
.PHONY: all | ||
all: cpp mkdocs | ||
@echo "All documentation built." | ||
|
||
.PHONY: deploy | ||
deploy: | ||
@echo "Deploying documentation..." | ||
cd .. && mkdocs gh-deploy --force |
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