From 0948f6856f8b40774f17aa2db6ce8ab3a1af0b14 Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Sat, 24 Sep 2022 16:55:46 +0200 Subject: [PATCH 1/3] Add github actions workflow for build tests This PR adds a build test workflow using github actions --- .github/workflows/build_test.yml | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/build_test.yml diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..ee6c380 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,54 @@ + +name: Build Test +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: + - {rosdistro: 'noetic', container: 'ros:noetic-ros-base-focal'} + container: ${{ matrix.config.container }} + steps: + - uses: actions/checkout@v1 + with: + token: ${{ secrets.ACCESS_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install catkin-tools on Noetic + run: | + apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 + apt update && apt install -y python3-pip + pip3 install osrf-pycommon + apt update && apt install -y python3-wstool python3-catkin-tools + - name: Install Dependencies + run: | + $GITHUB_WORKSPACE/install/prepare-jenkins-slave.sh + shell: bash + - name: Build test + working-directory: + env: + DEBIAN_FRONTEND: noninteractive + run: | + apt update + apt install -y autoconf libtool git qt5-default + mkdir -p $HOME/catkin_ws/src; + cd $HOME/catkin_ws + catkin init + catkin config --extend "/opt/ros/${{matrix.config.rosdistro}}" + catkin config --merge-devel + cd $HOME/catkin_ws/src + ln -s $GITHUB_WORKSPACE + cd $HOME/catkin_ws + rosdep update + rosdep install --from-paths src --ignore-src -y --rosdistro ${{matrix.config.rosdistro}} + catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release + catkin build -j$(nproc) -l$(nproc) + shell: bash From 06509331182fe39810e0e7cf591e4ac9ab8876c4 Mon Sep 17 00:00:00 2001 From: JaeyoungLim Date: Thu, 2 Nov 2023 04:12:55 +0100 Subject: [PATCH 2/3] Run on self hosted runner --- .github/workflows/build_test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index ee6c380..df96ea8 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -1,4 +1,3 @@ - name: Build Test on: push: @@ -10,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux] strategy: fail-fast: false matrix: From fcbd343da0c83f32fec5dc39b69f0ce825b1d350 Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Mon, 13 Nov 2023 08:18:52 +0100 Subject: [PATCH 3/3] See if it works with github hosted CIs --- .github/workflows/build_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index df96ea8..fd14714 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: [self-hosted, linux] + runs-on: ubuntu-latest strategy: fail-fast: false matrix: