Skip to content

Commit

Permalink
ci: Add container + actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Oct 31, 2024
1 parent 65977d6 commit c8d4073
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 363 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ RUN bash /tmp/build_opencv.sh
# Git-prompt: Source
RUN echo 'if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then GIT_PROMPT_ONLY_IN_REPO=1; source "$HOME/.bash-git-prompt/gitprompt.sh"; fi' >> /home/asl/.bash_aliases

# ROS: Source
RUN echo "source /opt/ros/noetic/setup.bash" >> /home/asl/.bash_aliases

# ROS: rosdep init
RUN sudo rosdep init && \
rosdep update && \
rosdep install --from-paths . --ignore-src -r -y

# Clean up
RUN rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /var/cache/apt/archives/*

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/build_and_push_images.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker buildx build --progress=plain -t omavteam/v4l2_camera:latest -f Dockerfile --push .
docker buildx build -t omavteam/v4l2_camera:latest -f .devcontainer/Dockerfile --push
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"remoteUser": "asl",
"initializeCommand": ".devcontainer/devcontainer_optional_mounts.sh",
"postStartCommand": "pip install -e .",
"mounts": [
{
"source": "${localEnv:HOME}/.bash-git-prompt",
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer_all_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ main() {
htop
locales
net-tools
python3-rosdep
software-properties-common
ssh
sudo
udev
unzip
v4l-utils
vim
wget
zlib1g
)
Expand Down
59 changes: 0 additions & 59 deletions .github/actions/generate-doxybook/action.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/actions/generate-doxygen/action.yml

This file was deleted.

118 changes: 0 additions & 118 deletions .github/workflows/build_test.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on: pull_request
jobs:
pr_build:
name: "${{ matrix.ci_script }}"
runs-on: self-hosted
container:
image: omavteam/v4l2_camera:latest

strategy:
matrix:
ci_script: [pr_compile]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
set-safe-directory: true

- name: Run ${{ matrix.ci_script }}
run: |
bash -x ./ci/${{ matrix.ci_script }}.sh
Loading

0 comments on commit c8d4073

Please sign in to comment.