-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from KumarRobotics/ci
Add automatic build based on dcist-master docker image
- Loading branch information
Showing
4 changed files
with
81 additions
and
1 deletion.
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,40 @@ | ||
name: docker-build-CI | ||
|
||
# Only build base when any of the files in the base directory are modified | ||
on: | ||
push: | ||
branches: [main, ci] | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- | ||
name: Free Disk Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: true | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "{{defaultContext}}" | ||
push: false | ||
platforms: linux/amd64 | ||
build-args: git_hash=${{ github.sha }} | ||
- | ||
name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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 @@ | ||
# Note: this Dockerfile is only used for the CI. Please refer to the | ||
# instructions in README.md to use this repo | ||
|
||
FROM kumarrobotics/dcist-master:latest | ||
|
||
# Requires a docker build argument `user_id` | ||
ARG user_id=1000 | ||
env USER dcist | ||
|
||
# Create a base docker environment | ||
RUN . /home/$USER/dcist_ws/devel/setup.sh \ | ||
&& mkdir -p /home/$USER/user_ws/src && cd /home/$USER/user_ws \ | ||
&& catkin config --extend ~/dcist_ws/devel \ | ||
&& catkin build --no-status -DCMAKE_BUILD_TYPE=Release | ||
|
||
# Copy the spomp environment into the user workspace | ||
COPY --chown=$USER:$USER . /home/$USER/user_ws/src/spomp-system | ||
|
||
# Build the workspace | ||
RUN cd /home/$USER/user_ws \ | ||
&& catkin build --no-status -DCMAKE_BUILD_TYPE=Release \ | ||
&& catkin build |
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
Submodule ouster_decoder
updated
6 files
+0 −5 | README.md | |
+2 −2 | launch/decoder.launch | |
+14 −1 | launch/driver.launch | |
+5 −5 | src/decoder.cpp | |
+12 −10 | src/driver.cpp | |
+1 −1 | src/lidar.h |