Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaowu committed Aug 3, 2024
1 parent 1b87223 commit 2e0f0f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/ros2-ci/build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -xe
cd ${GITHUB_WORKSPACE}/.github/ros2-ci
source ./common.sh
docker build -t ${IMAGE_NAME}:latest
1 change: 1 addition & 0 deletions .github/ros2-ci/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IMAGE_NAME=${GITHUB_WORKFLOW}-${GITHUB_REF_NAME//\//-}-ros2-ci
18 changes: 17 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master

name: cactus-rt

Expand Down Expand Up @@ -53,3 +59,13 @@ jobs:

# - name: Run example
# run: docker/scripts/04-example.sh

build-and-test-ros:
runs-on: [self-hosted, noble, real-time]
env:
image_name: ${{ github.workflow }}-ci-${{ github.ref_name }}
steps:
- uses: actions/checkout@v3

- name: Build docker container
run: .github/ros2-ci/build-docker.sh

0 comments on commit 2e0f0f1

Please sign in to comment.