From 2cd68ea3dffcc3b0e084e9e0006652a809f0a789 Mon Sep 17 00:00:00 2001 From: Ar-Ray-code Date: Sat, 2 Dec 2023 00:48:12 +0900 Subject: [PATCH] add ci --- .github/workflows/ci_humble.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci_humble.yml diff --git a/.github/workflows/ci_humble.yml b/.github/workflows/ci_humble.yml new file mode 100644 index 0000000..5edab01 --- /dev/null +++ b/.github/workflows/ci_humble.yml @@ -0,0 +1,36 @@ +name: ci_humble + +on: + push: + branches: + - "humble" + pull_request: + types: [opened, synchronize, labeled] + +jobs: + ci: + runs-on: ${{ matrix.os }} + if: | + ((github.event.action == 'labeled') && (github.event.label.name == 'TESTING') && (github.base_ref == 'humble' )) || + ((github.event.action == 'synchronize') && (github.base_ref == 'humble') && contains(github.event.pull_request.labels.*.name, 'TESTING')) || + (github.ref_name == 'humble') + container: + image: osrf/ros:${{ matrix.ros_distribution }}-desktop + timeout-minutes: 20 + strategy: + fail-fast: true + matrix: + os: [ubuntu-22.04] + ros_distribution: [humble] + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result + - name: Build and Test + uses: ros-tooling/action-ros-ci@v0.2 + with: + target-ros2-distro: ${{ matrix.ros_distribution }} + import-token: ${{ secrets.H6X_REPO_TOKEN }} + vcs-repo-file-url: build_depends.repos + package-name: | + auto_driver_hardware \ No newline at end of file