-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CI workflows in master (#216)
* Refs #21286: Add Ubuntu CI Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Add Windows CI Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Add MacOS CI Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Remove previous job Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Update PR template Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Add missing dependency Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Fix colcon test warning Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Add RELEASE_SUPPORT.md Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Apply rev suggestions Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Fix labels Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Try to fix windows CI Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> * Refs #21286: Include GitHub CI badges in readme Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com> --------- Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
- Loading branch information
1 parent
0aa63eb
commit 203725d
Showing
14 changed files
with
600 additions
and
140 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
4 changes: 4 additions & 0 deletions
4
.github/workflows/config/colcon.meta → .github/workflows/config/build.meta
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
names: | ||
fastcdr: | ||
cmake-args: | ||
- "-DBUILD_TESTING=ON" | ||
googletest-distribution: | ||
cmake-args: | ||
- "-Dgtest_force_shared_crt=ON" | ||
- "-DBUILD_SHARED_LIBS=ON" | ||
- "-DBUILD_GMOCK=ON" | ||
|
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,7 @@ | ||
names: | ||
fastcdr: | ||
ctest-args: [ | ||
"--repeat", "until-pass:3", | ||
"--timeout", "300", | ||
"--output-junit", "junit/junit.xml" | ||
] |
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,5 @@ | ||
repositories: | ||
googletest-distribution: | ||
type: git | ||
url: https://github.com/google/googletest.git | ||
version: release-1.11.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Fast CDR Mac CI | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
os-version: | ||
description: 'OS version to run the workflow' | ||
required: false | ||
default: 'macos-13' | ||
type: string | ||
colcon-args: | ||
description: 'Extra arguments for colcon cli' | ||
required: false | ||
type: string | ||
cmake-args: | ||
description: 'Extra arguments for cmake cli' | ||
required: false | ||
type: string | ||
ctest-args: | ||
description: 'Extra arguments for ctest cli' | ||
required: false | ||
type: string | ||
fastcdr-branch: | ||
description: 'Branch or tag of Fast CDR repository' | ||
type: string | ||
required: true | ||
run-tests: | ||
description: 'Run test suite of Fast CDR' | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
pull_request: | ||
types: | ||
- review_requested | ||
paths-ignore: | ||
- '**.md' | ||
- '**.txt' | ||
- '!**/CMakeLists.txt' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
mac-ci: | ||
if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'conflicts') }} | ||
uses: ./.github/workflows/reusable-ci.yml | ||
with: | ||
# It would be desirable to have a matrix of macos OS for this job, but due to the issue opened in this ticket: | ||
# https://github.com/orgs/community/discussions/128118 , it has been set as a single OS job. | ||
os-version: ${{ inputs.os-version || 'macos-13' }} | ||
label: ${{ format('mac-ci-{0}', inputs.fastcdr-branch || github.ref) }} | ||
colcon-args: ${{ inputs.colcon-args }} | ||
cmake-args: ${{ inputs.cmake-args }} | ||
ctest-args: ${{ inputs.ctest-args }} | ||
fastcdr-branch: ${{ inputs.fastcdr-branch || github.ref }} | ||
run-build: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} | ||
run-tests: ${{ (inputs.run-tests == true) || ((github.event_name == 'pull_request') && (!contains(github.event.pull_request.labels.*.name, 'no-test'))) }} |
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,57 @@ | ||
name: Fast CDR Mac CI (nightly) | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
nightly-mac-ci-master: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@master | ||
with: | ||
os-version: 'macos-13' | ||
label: 'nightly-mac-ci-master' | ||
fastcdr-branch: 'master' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-mac-ci-2_2_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@2.2.x | ||
with: | ||
os-version: 'macos-13' | ||
label: 'nightly-mac-ci-2.2.x' | ||
fastcdr-branch: '2.2.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-mac-ci-2_1_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@2.1.x | ||
with: | ||
os-version: 'macos-13' | ||
label: 'nightly-mac-ci-2.1.x' | ||
fastcdr-branch: '2.1.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-mac-ci-1_1_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@1.1.x | ||
with: | ||
os-version: 'macos-13' | ||
label: 'nightly-mac-ci-1.1.x' | ||
fastcdr-branch: '1.1.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-mac-ci-1_0_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@1.0.x | ||
with: | ||
os-version: 'mac-13' | ||
label: 'nightly-mac-ci-1.0.x' | ||
fastcdr-branch: '1.0.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: 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,57 @@ | ||
name: Fast CDR Ubuntu CI (nightly) | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
nightly-ubuntu-ci-master: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@master | ||
with: | ||
os-version: 'ubuntu-22.04' | ||
label: 'nightly-ubuntu-ci-master' | ||
fastcdr-branch: 'master' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-ubuntu-ci-2_2_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@2.2.x | ||
with: | ||
os-version: 'ubuntu-22.04' | ||
label: 'nightly-ubuntu-ci-2.2.x' | ||
fastcdr-branch: '2.2.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-ubuntu-ci-2_1_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@2.1.x | ||
with: | ||
os-version: 'ubuntu-22.04' | ||
label: 'nightly-ubuntu-ci-2.1.x' | ||
fastcdr-branch: '2.1.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-ubuntu-ci-1_1_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@1.1.x | ||
with: | ||
os-version: 'ubuntu-22.04' | ||
label: 'nightly-ubuntu-ci-1.1.x' | ||
fastcdr-branch: '1.1.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false | ||
|
||
nightly-ubuntu-ci-1_0_x: | ||
uses: eProsima/Fast-CDR/.github/workflows/reusable-ci.yml@1.0.x | ||
with: | ||
os-version: 'ubuntu-20.04' | ||
label: 'nightly-ubuntu-ci-1.0.x' | ||
fastcdr-branch: '1.0.x' | ||
run-build: true | ||
run-tests: true | ||
use-ccache: false |
Oops, something went wrong.