Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use roxy_iron:base container for CI #23

Closed
wants to merge 1 commit into from
Closed
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
60 changes: 60 additions & 0 deletions .github/workflows/iron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Ubuntu 22.04 Iron Build

on:
pull_request:
branches:
- iron
push:
branches:
- iron
schedule:
# At 7:01 & 20:01 only on Sunday
- cron: '01 7,20 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Build:
timeout-minutes: 20
runs-on: self-hosted
container:
image: ${{ vars.LOCAL_DOCKER_REGISTRY_IP }}:5000/roxy_iron:base

steps:
- name: Install colcon tools
run: python3 -m pip install colcon-lcov-result colcon-coveragepy-result

- name: Checkout
uses: actions/checkout@v4

- name: Configure git for private modules
env:
TOKEN: ${{ secrets.MYORG_REPO_ACCESS_TOKEN }}
run: |
git config --global url."https://roncapat:${TOKEN}@github.com".insteadOf "https://github.com"
cat ~/.gitconfig

- name: Run Tests
timeout-minutes: 10
uses: ros-tooling/[email protected]
with:
target-ros2-distro: iron
import-token: ${{ secrets.GITHUB_TOKEN }}
vcs-repo-file-url: ${{ github.workspace }}/iron.repos
skip-rosdep-install: true
colcon-defaults: |
{
"build": {
"merge-install": true,
"cmake-args": [
"-D_FORTIFY_SOURCE=3",
"-D_GLIBCXX_ASSERTIONS=1",
"-DCMAKE_C_FLAGS=-march=native -fopenmp",
"-DCMAKE_CXX_FLAGS=-march=native -fopenmp"
] },
"test": {
"merge-install": true
}
}
Loading