Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/actions/make@local/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ros:kinetic-perception

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
6 changes: 6 additions & 0 deletions .github/actions/make@local/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# action.yml
name: 'Make on Ros Kinetic Perception'
description: 'Standard cmake and make on ros:kinetic-perception'
runs:
using: 'docker'
image: 'Dockerfile'
14 changes: 14 additions & 0 deletions .github/actions/make@local/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e # fail on error

cd /github/workspace

source /opt/ros/kinetic/setup.bash

rm -rf build #clean the build
mkdir build
cd build
pwd
cmake ..
make
36 changes: 36 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Candidate
on:
pull_request:
branches:
- master
jobs:
package:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v2
with:
token: ${{secrets.github_token}}
- name: Package
id: package
uses: AutoModality/action-package-debian-ros@v1.1.0
with:
branch: ${{ github.event.pull_request.head.ref }}
pull-request-number: ${{ github.event.number }}
build-number: ${{ steps.buildnumber.outputs.build_number }}
- name: The generated package
run: echo "The artifact is ${{ steps.package.outputs.artifact-path }}"
- name: Deploy
id: deploy
uses: AutoModality/action-cloudsmith@0.2.0
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
format: 'deb'
owner: 'automodality'
repo: 'dev'
distro: 'ubuntu'
release: 'xenial'
file: '${{ steps.package.outputs.artifact-path }}'
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release
on:
push:
branches:
- master
jobs:
package:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic # `id` for output variables
with:
semantic_version: 15.14.0
extra_plugins: |
@semantic-release/git
@semantic-release/changelog@3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package
if: steps.semantic.outputs.new_release_published == 'true'
id: package
uses: AutoModality/action-package-debian-ros@v1.1.0
with:
version: ${{ steps.semantic.outputs.new_release_version }}
- name: The generated package
run: echo "The artifact is ${{ steps.package.outputs.artifact-path }}"
- name: Deploy
if: steps.semantic.outputs.new_release_published == 'true'
id: deploy
uses: AutoModality/action-cloudsmith@0.2.0
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: 'push'
format: 'deb'
owner: 'automodality'
repo: 'release'
distro: 'ubuntu'
release: 'xenial'
file: '${{ steps.package.outputs.artifact-path }}'
14 changes: 14 additions & 0 deletions .github/workflows/story.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Story Development

on:
push:
branches-ignore:
- master
jobs:
build:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: make
uses: ./.github/actions/make@local

16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# am-utils
# AM Utils

A common library for sharing core code.


| Github Action | Debian Package |
| ------------- | ------------- |
| [![Story Development](https://github.com/AutoModality/am-utils/workflows/Story%20Development/badge.svg)](https://github.com/AutoModality/am-utils/actions?query=workflow%3A%22Story+Development%22) | -- |
| [![Release Candidate](https://github.com/AutoModality/am-utils/workflows/Release%20Candidate/badge.svg)](https://github.com/AutoModality/am-utils/actions?query=workflow%3A%22Release+Candidate%22) | [![Latest Version @ Cloudsmith](https://api-prd.cloudsmith.io/badges/version/automodality/dev/deb/ros-kinetic-am-utils/latest/d=ubuntu%252Fxenial;t=1/?render=true&badge_token=gAAAAABeEXmnoIyJ49KZBuqu7owI69o58O-pEmDK1uXKcvR-65M3zvVldA6lRgnSlbOXlwUdmAwIYqjEaAIZ_K0DXuO7agbeqnAtp1uXvuwoxD6KMqz3wYQ%3D)](https://cloudsmith.io/~automodality/repos/dev/packages/detail/deb/ros-kinetic-am-utils/latest/d=ubuntu%252Fxenial;t=1/) |
| [![Release](https://github.com/AutoModality/am-utils/workflows/Release/badge.svg)](https://github.com/AutoModality/am-utils/actions?query=workflow%3A%22Release) | TBD|


## Releases

See [releases](https://github.com/AutoModality/am-utils/releases) for the latest. Follows the standard [Development Lifecycle](https://automodality.atlassian.net/wiki/spaces/AUTOMOD/pages/668664251/Development+Lifecycle).
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
13 changes: 13 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: ros-kinetic-am-utils
Section: unknown
Priority: extra
Maintainer: Jimi Damon <jdamon@automodality.com>
Build-Depends: cmake, debhelper (>=9),javahelper
Standards-Version: 3.9.6
Homepage: <insert the upstream URL, if relevant>

Package: ros-kinetic-am-utils
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Utilites for AM based ROs packages
Loading