Skip to content

Commit

Permalink
Switch to using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Oct 9, 2020
1 parent 80d9579 commit 5686421
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 29 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/bionic_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Bionic-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 5 * * *'

jobs:
industrial_ci:
name: Melodic
runs-on: ubuntu-latest
env:
CI_NAME: Bionic-Build
OS_NAME: ubuntu
OS_CODE_NAME: bionic
ROS_DISTRO: melodic
ROS_REPO: main
NOT_TEST_BUILD: true
UPSTREAM_WORKSPACE: 'dependencies_ros1.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu cmake_common_scripts"
CCACHE_DIR: "/home/runner/work/noether/noether/Bionic-Build/.ccache"
TARGET_CMAKE_ARGS: "-DNURBS_FOUND=TRUE"
DOCKER_IMAGE: "rosindustrial/noether:melodic"
steps:
- uses: actions/checkout@v2

- name: Free Disk Space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/[email protected]
with:
path: ${{ env.CI_NAME }}/.ccache
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ env.CI_NAME }}-ccache-
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
54 changes: 54 additions & 0 deletions .github/workflows/focal_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Focal-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 5 * * *'

jobs:
industrial_ci:
name: Noetic
runs-on: ubuntu-latest
env:
CI_NAME: Focal-Build
OS_NAME: ubuntu
OS_CODE_NAME: focal
ROS_DISTRO: noetic
ROS_REPO: main
NOT_TEST_BUILD: true
UPSTREAM_WORKSPACE: 'dependencies_ros1.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu cmake_common_scripts"
CCACHE_DIR: "/home/runner/work/noether/noether/Focal-Build/.ccache"
TARGET_CMAKE_ARGS: "-DNURBS_FOUND=TRUE"
DOCKER_IMAGE: "rosindustrial/noether:noetic"
steps:
- uses: actions/checkout@v2

- name: Free Disk Space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/[email protected]
with:
path: ${{ env.CI_NAME }}/.ccache
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ env.CI_NAME }}-ccache-
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
54 changes: 54 additions & 0 deletions .github/workflows/xenial_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Xenial-Build

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 5 * * *'

jobs:
industrial_ci:
name: Kinetic
runs-on: ubuntu-latest
env:
CI_NAME: Xenial-Build
OS_NAME: ubuntu
OS_CODE_NAME: xenial
ROS_DISTRO: kinetic
ROS_REPO: main
NOT_TEST_BUILD: true
UPSTREAM_WORKSPACE: 'dependencies_ros1.rosinstall'
ROSDEP_SKIP_KEYS: "iwyu cmake_common_scripts"
CCACHE_DIR: "/home/runner/work/noether/noether/Xenial-Build/.ccache"
TARGET_CMAKE_ARGS: "-DNURBS_FOUND=TRUE"
DOCKER_IMAGE: "rosindustrial/noether:kinetic"
steps:
- uses: actions/checkout@v2

- name: Free Disk Space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: ccache cache files
uses: actions/[email protected]
with:
path: ${{ env.CI_NAME }}/.ccache
key: ${{ env.CI_NAME }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ env.CI_NAME }}-ccache-
- uses: 'ros-industrial/industrial_ci@master'
env: ${{env}}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Tool path planning and surface segmenter

## Build Status

Platform | CI Status
---------------------|:---------
Linux (Focal) | [![Build Status](https://github.com/ros-industrial/noether/workflows/Focal-Build/badge.svg)](https://github.com/ros-industrial/noether/actions)
Linux (Bionic) | [![Build Status](https://github.com/ros-industrial/noether/workflows/Bionic-Build/badge.svg)](https://github.com/ros-industrial/noether/actions)
Linux (Xenial) | [![Build Status](https://github.com/ros-industrial/noether/workflows/Xenial-Build/badge.svg)](https://github.com/ros-industrial/noether/actions)

---
## Prerequisites
- These packages run on Ubuntu 16.04 and ROS
Expand Down

0 comments on commit 5686421

Please sign in to comment.