-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
343118e
commit 1f7d7c5
Showing
1 changed file
with
60 additions
and
0 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,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/action-ros-ci@0.3.6 | ||
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 | ||
} | ||
} |