1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ROS2のリポジトリにプルリクきたら自動でビルドテストする

Last updated at Posted at 2022-12-21

Github Actionを使うと、プルリクやプッシュをトリガーにして自動テストや自動ビルドができます。今回は、ROS2のCIをGithub Actionで回す方法についてお話します。ROS2の公式CIは遅くて辛いので、良さそうなリポジトリを見つけましたので、ご紹介したいと思います。

方法

以下の方法はBuildが通るかの確認のみです。テストなどは実行しません。

ROS2のプロジェクトがあるリポジトリ
-> Actions
-> set up a workflow yourself
-> main.ymlに以下をコピペ & コミット

name: Build
on:
  pull_request:
    branches: [ main ]
  push:
    branches: [ main ]
jobs:
  build-and-test:
    runs-on: ubuntu-latest
    steps:
      - name: Checking out
        uses: actions/checkout@v2.3.4
      - name: Building and testing
        uses: TakanoTaiga/ros2-ci@v1.0.1

勝手にビルドがはしる。

使用させていただいたリポジトリ

以下のリポジトリをフォークして自分が使いやすいように書き換えました。本家開発者様の皆さま爆速ROS2CIありがとうございます。テストも回したい場合や依存関係がある場合などは本家様のリポジトリを参照お願いいたします。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?