From 81cd64bda56fd1f9a3e3badc68bb68fa79b0786d Mon Sep 17 00:00:00 2001 From: Dave Kroezen Date: Thu, 2 May 2024 15:13:33 +0200 Subject: [PATCH] Add github ci --- .github/workflows/industrial_ci_action.yml | 16 ++++++++++ .gitlab-ci.yml | 34 ---------------------- 2 files changed, 16 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/industrial_ci_action.yml delete mode 100644 .gitlab-ci.yml diff --git a/.github/workflows/industrial_ci_action.yml b/.github/workflows/industrial_ci_action.yml new file mode 100644 index 0000000..529c531 --- /dev/null +++ b/.github/workflows/industrial_ci_action.yml @@ -0,0 +1,16 @@ +name: Build + +on: [push, pull_request] + +jobs: + industrial_ci: + strategy: + matrix: + env: + - {ROS_DISTRO: humble, ROS_REPO: testing} + - {ROS_DISTRO: humble, ROS_REPO: main} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: 'ros-industrial/industrial_ci@master' + env: ${{matrix.env}} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 8eba663..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,34 +0,0 @@ -image: docker:git -services: - - docker:24.0.3-dind -variables: - DOCKER_TLS_CERTDIR: "/certs" - TMPDIR: "${CI_PROJECT_DIR}.tmp" - CCACHE_DIR: ${CI_PROJECT_DIR}/ccache - -cache: - key: "${CI_JOB_NAME}" # https://docs.gitlab.com/ee/ci/caching/#sharing-caches-across-different-branches - paths: - - ccache - -before_script: - - apk add --update bash coreutils tar - - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci -b master - # Inject the CI JOB token to allow us to download from our private repos in the .rosinstall file - # - sed -i 's|https://gitlab.tudelft.nl|https://gitlab-ci-token:'${CI_JOB_TOKEN}'@gitlab.tudelft.nl|g' ${CI_PROJECT_DIR}/.rosinstall - -foxy: - script: - .industrial_ci/gitlab.sh - variables: - ROS_DISTRO: foxy - DOCKER_IMAGE: "ros:foxy" - DOCKER_RUN_OPTS: '-v /etc/ssl/certs:/etc/ssl/certs:ro' - -humble: - script: - .industrial_ci/gitlab.sh - variables: - ROS_DISTRO: humble - DOCKER_IMAGE: "ros:humble" - DOCKER_RUN_OPTS: '-v /etc/ssl/certs:/etc/ssl/certs:ro'