-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to github actions * Fix formating errors
- Loading branch information
Vatan Aksoy Tezer
authored
Jun 4, 2021
1 parent
fa945cb
commit 37c0701
Showing
29 changed files
with
1,537 additions
and
722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git). | ||
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst) | ||
|
||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
default: | ||
strategy: | ||
matrix: | ||
env: | ||
- IMAGE: master-source | ||
- IMAGE: noetic-source | ||
env: | ||
DOCKER_IMAGE: moveit/moveit:${{ matrix.env.IMAGE }} | ||
UNDERLAY: /root/ws_moveit/install | ||
CATKIN_LINT: true | ||
CCACHE_DIR: ${{ github.workspace }}/.ccache | ||
BASEDIR: ${{ github.workspace }}/.work | ||
CLANG_TIDY_BASE_REF: ${{ github.base_ref || github.ref }} | ||
|
||
name: ${{ matrix.env.IMAGE }}${{ matrix.env.CATKIN_LINT && ' + catkin_lint' || ''}}${{ matrix.env.CLANG_TIDY && ' + clang-tidy' || '' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# The target directory cache doesn't include the source directory because | ||
# that comes from the checkout. See "prepare target_ws for cache" task below | ||
- name: cache target_ws | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.BASEDIR }}/target_ws | ||
key: ${{ env.CACHE_PREFIX }}-${{ github.run_id }} | ||
restore-keys: ${{ env.CACHE_PREFIX }} | ||
env: | ||
CACHE_PREFIX: target_ws-${{ matrix.env.IMAGE }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }} | ||
- name: cache ccache | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | ||
restore-keys: | | ||
${{ env.CACHE_PREFIX }}-${{ github.sha }} | ||
${{ env.CACHE_PREFIX }} | ||
env: | ||
CACHE_PREFIX: ccache-${{ matrix.env.IMAGE }} | ||
|
||
- name: industrial_ci | ||
uses: ros-industrial/industrial_ci@master | ||
env: ${{ matrix.env }} | ||
|
||
- name: upload test artifacts (on failure) | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: test-results | ||
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml | ||
- name: prepare target_ws for cache | ||
if: ${{ always() }} | ||
run: | | ||
du -sh ${{ env.BASEDIR }}/target_ws | ||
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete | ||
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src ${{ env.BASEDIR }}/target_ws/logs | ||
du -sh ${{ env.BASEDIR }}/target_ws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build+Test+Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
default: | ||
name: Build + Test + Deploy Website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: noetic | ||
- uses: actions/setup-python@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
- name: "Build+Test: Run htmlproofer.sh" | ||
run: ./htmlproofer.sh | ||
- name: Deploy | ||
if: ${{ success() && github.event_name == 'push'}} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This is a format job. Pre-commit has a first-party GitHub action, so we use | ||
# that: https://github.com/pre-commit/action | ||
|
||
name: Format (pre-commit) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
pre-commit: | ||
name: pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install clang-format-10 | ||
run: sudo apt-get install clang-format-10 | ||
- uses: rhaschke/[email protected] | ||
with: | ||
distro: noetic | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ doc/html | |
build | ||
Gemfile | ||
native_build | ||
*.gdb | ||
*.gdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# To use: | ||
# | ||
# pre-commit run -a | ||
# | ||
# Or: | ||
# | ||
# pre-commit install # (runs every time you commit in git) | ||
# | ||
# To update this file: | ||
# | ||
# pre-commit autoupdate | ||
# | ||
# See https://github.com/pre-commit/pre-commit | ||
|
||
repos: | ||
# Standard hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: destroyed-symlinks | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: local | ||
hooks: | ||
- id: clang-format | ||
name: clang-format | ||
description: Format files with ClangFormat. | ||
entry: clang-format-10 | ||
language: system | ||
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$ | ||
args: ['-fallback-style=none', '-i'] | ||
- id: catkin_lint | ||
name: catkin_lint | ||
description: Check package.xml and cmake files | ||
entry: catkin_lint . | ||
language: system | ||
always_run: true | ||
pass_filenames: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.