-
Notifications
You must be signed in to change notification settings - Fork 57
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
5 changed files
with
104 additions
and
2 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,39 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: '**.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: '**.md' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
TOOLCHAIN: [gcc, llvm] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
submodules: recursive | ||
|
||
- name: Docker login | ||
continue-on-error: true | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Docker build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
file: ${{github.workspace}}/docker/Dockerfile${{ matrix.TOOLCHAIN }} | ||
context: . | ||
push: false |
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,25 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
&& apt-get install --no-install-recommends -y \ | ||
wget nano build-essential git cmake \ | ||
libeigen3-dev libfmt-dev libtbb-dev libomp-dev libpcl-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /root/small_gicp | ||
WORKDIR /root/small_gicp/build | ||
RUN rm -rf ./* | ||
|
||
RUN cmake .. -DBUILD_WITH_TBB=ON | ||
RUN cmake --build . -j$(nproc) | ||
|
||
RUN cmake .. -DBUILD_TESTS=ON -DBUILD_WITH_TBB=ON -DBUILD_BENCHMARKS=ON -DBUILD_WITH_PCL=ON | ||
RUN cmake --build . -j$(nproc) | ||
RUN ctest -j$(nproc) | ||
|
||
WORKDIR / | ||
|
||
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,35 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
&& apt-get install --no-install-recommends -y \ | ||
wget nano build-essential git cmake \ | ||
libeigen3-dev libfmt-dev libtbb-dev libomp-dev libpcl-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
&& apt-get install --no-install-recommends -y \ | ||
clang lld \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld 50 | ||
ENV CC=clang | ||
ENV CXX=clang++ | ||
|
||
COPY . /root/small_gicp | ||
WORKDIR /root/small_gicp/build | ||
RUN rm -rf ./* | ||
|
||
RUN cmake .. -DBUILD_WITH_TBB=ON | ||
RUN cmake --build . -j$(nproc) | ||
|
||
RUN cmake .. -DBUILD_TESTS=ON -DBUILD_WITH_TBB=ON -DBUILD_BENCHMARKS=ON -DBUILD_WITH_PCL=ON | ||
RUN cmake --build . -j$(nproc) | ||
RUN ctest -j$(nproc) | ||
|
||
WORKDIR / | ||
|
||
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