-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
3,048 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Close Inactive Issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 14 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
days-before-pr-stale: -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,16 @@ | ||
name: C++ Formatting Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
cpp_formatter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clang Formatter | ||
uses: DoozyX/[email protected] | ||
with: | ||
clangFormatVersion: 14 | ||
source: "." |
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,54 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
create_release: | ||
if: startsWith(github.event.head_commit.message, 'new version') | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Extract version from commit message | ||
run: | | ||
# Get the version from the commit message using a regex | ||
if [[ "${{ github.event.head_commit.message }}" =~ new\ version\ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then | ||
echo "version=${BASH_REMATCH[1]}" >> $GITHUB_ENV | ||
else | ||
echo "Commit message does not match 'new version *.*.*' format." | ||
exit 1 | ||
fi | ||
- name: Get previous tag | ||
run: | | ||
previous_tag=$(git describe --tags --abbrev=0 HEAD^) | ||
echo "previous_tag=$previous_tag" >> $GITHUB_ENV | ||
- name: Generate release notes with commit messages | ||
run: | | ||
commits=$(git log "${{ env.previous_tag }}..HEAD" --oneline) | ||
echo "release_body<<EOF" >> $GITHUB_ENV | ||
echo "### Changelog from version ${{ env.previous_tag }} to ${{ env.version }}:" >> $GITHUB_ENV | ||
echo "$commits" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Create GitHub release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: "${{ env.version }}" | ||
release_name: "${{ env.version }}" | ||
body: "${{ env.release_body }}" | ||
draft: false | ||
prerelease: false |
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: Doxygen Deployment | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
doxygen_generation: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate Doxygen | ||
uses: mattnotmitt/doxygen-action@edge | ||
with: | ||
doxyfile-path: ".github/Doxyfile" | ||
|
||
- name: Deploy Doxygen page | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: gh-pages | ||
publish_dir: docs/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 @@ | ||
name: Humble Docker Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 5 * * 1" | ||
|
||
jobs: | ||
humble_docker_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build docker | ||
uses: docker/build-push-action@v6 | ||
with: | ||
build-args: ROS_DISTRO=humble | ||
push: false |
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 @@ | ||
name: Iron Docker Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 5 * * 1" | ||
|
||
jobs: | ||
iron_docker_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build docker | ||
uses: docker/build-push-action@v6 | ||
with: | ||
build-args: ROS_DISTRO=iron | ||
push: false |
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 @@ | ||
name: Jazzy Docker Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 5 * * 1" | ||
|
||
jobs: | ||
jazzy_docker_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build docker | ||
uses: docker/build-push-action@v6 | ||
with: | ||
build-args: ROS_DISTRO=jazzy | ||
push: false |
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,15 @@ | ||
name: Python Formatting Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
python_formatter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Black Formatter | ||
uses: lgeiger/black-action@master | ||
with: | ||
args: ". --check --diff --line-length 90" |
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 @@ | ||
name: Rolling Docker Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 5 * * 1" | ||
|
||
jobs: | ||
rolling_docker_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build docker | ||
uses: docker/build-push-action@v6 | ||
with: | ||
build-args: ROS_DISTRO=rolling | ||
push: false |