Skip to content

ruheng is run GitHub Actions πŸš€ #3

ruheng is run GitHub Actions πŸš€

ruheng is run GitHub Actions πŸš€ #3

Workflow file for this run

name: GitHub Actions CI
run-name: ${{ github.actor }} is run GitHub Actions πŸš€
on: [push]
defaults:
run:
shell: bash
jobs:
build-job:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GIT_TOKEN }}
- name: Install dependence
run: |
sudo apt install -y qemu-user-static binfmt-support
- name: Download code
uses: actions/checkout@v3
- name: Build and code test
run: |
docker pull ghcr.io/miroboticslab/cyberdog:v1
docker run -i -v $GITHUB_WORKSPACE:/home/ros2/src ghcr.io/miroboticslab/cyberdog:v1 bash -c \
"cd /home/ros2 && source /opt/ros2/galactic/setup.bash \
&& colcon build --packages-up-to cyberdog_manager manager_base black_box user_info_manager \
&& colcon test --event-handlers console_cohesion+ --return-code-on-test-failure --packages-select cyberdog_manager manager_base black_box user_info_manager"
# colcon build test