Skip to content

Commit c8d4073

Browse files
committed
ci: Add container + actions workflow
1 parent 65977d6 commit c8d4073

File tree

13 files changed

+65
-363
lines changed

13 files changed

+65
-363
lines changed

Diff for: .devcontainer/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ RUN bash /tmp/build_opencv.sh
3131
# Git-prompt: Source
3232
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
3333

34+
# ROS: Source
35+
RUN echo "source /opt/ros/noetic/setup.bash" >> /home/asl/.bash_aliases
36+
37+
# ROS: rosdep init
38+
RUN sudo rosdep init && \
39+
rosdep update && \
40+
rosdep install --from-paths . --ignore-src -r -y
41+
3442
# Clean up
3543
RUN rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /var/cache/apt/archives/*
3644

Diff for: .devcontainer/build_and_push_images.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker buildx build --progress=plain -t omavteam/v4l2_camera:latest -f Dockerfile --push .
1+
docker buildx build -t omavteam/v4l2_camera:latest -f .devcontainer/Dockerfile --push

Diff for: .devcontainer/devcontainer.json

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
},
1818
"remoteUser": "asl",
1919
"initializeCommand": ".devcontainer/devcontainer_optional_mounts.sh",
20-
"postStartCommand": "pip install -e .",
2120
"mounts": [
2221
{
2322
"source": "${localEnv:HOME}/.bash-git-prompt",

Diff for: .devcontainer/devcontainer_all_packages.sh

+2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ main() {
1414
htop
1515
locales
1616
net-tools
17+
python3-rosdep
1718
software-properties-common
1819
ssh
1920
sudo
2021
udev
2122
unzip
2223
v4l-utils
24+
vim
2325
wget
2426
zlib1g
2527
)

Diff for: .github/actions/generate-doxybook/action.yml

-59
This file was deleted.

Diff for: .github/actions/generate-doxygen/action.yml

-32
This file was deleted.

Diff for: .github/workflows/build_test.yml

-118
This file was deleted.

Diff for: .github/workflows/ci.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on: pull_request
3+
jobs:
4+
pr_build:
5+
name: "${{ matrix.ci_script }}"
6+
runs-on: self-hosted
7+
container:
8+
image: omavteam/v4l2_camera:latest
9+
10+
strategy:
11+
matrix:
12+
ci_script: [pr_compile]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
set-safe-directory: true
20+
21+
- name: Run ${{ matrix.ci_script }}
22+
run: |
23+
bash -x ./ci/${{ matrix.ci_script }}.sh

0 commit comments

Comments
 (0)