From f88964528010039bb010b7af7acfe32ba01fca74 Mon Sep 17 00:00:00 2001 From: "Isaac I.Y. Saito" <130s@2000.jukuin.keio.ac.jp> Date: Fri, 11 Feb 2022 13:32:00 -0500 Subject: [PATCH] [capability] Add GitHub CI config --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..39820ff --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + # direct pushes to protected branches are not supported + pull_request: + +jobs: + i_ci: + name: ubuntu_bionic (${{ matrix.ros_repo }}) + runs-on: ubuntu-18.04 + + strategy: + matrix: + ros_distro: [ melodic ] + ros_repo: [ main, testing ] + + env: + CCACHE_DIR: "${{ github.workspace }}/.ccache" + CATKIN_LINT: "true" + CATKIN_LINT_ARGS: --ignore launch_depend + + steps: + - name: Fetch repository + uses: actions/checkout@v2 + + - name: ccache cache + uses: actions/cache@v2 + with: + path: ${{ env.CCACHE_DIR }} + # we always want the ccache cache to be persisted, as we cannot easily + # determine whether dependencies have changed, and ccache will manage + # updating the cache for us. Adding 'run_id' to the key will force an + # upload at the end of the job. + key: ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}-${{github.run_id}} + restore-keys: | + ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }} + + - name: Run industrial_ci + uses: ros-industrial/industrial_ci@master + env: + ROS_DISTRO: ${{ matrix.ros_distro }} + ROS_REPO: ${{ matrix.ros_repo }}