From b036011d9dc2f53c22334cc7f627d6c5817dee16 Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Thu, 11 Jul 2024 11:10:24 +0200 Subject: [PATCH] Refs #21286: Fix CDR version in tests Signed-off-by: JesusPoderoso --- .github/workflows/reusable-ubuntu-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-ubuntu-ci.yml b/.github/workflows/reusable-ubuntu-ci.yml index 989fbdf5..3ac06e06 100644 --- a/.github/workflows/reusable-ubuntu-ci.yml +++ b/.github/workflows/reusable-ubuntu-ci.yml @@ -54,6 +54,8 @@ on: required: false type: boolean default: false +env: + cdr-test-flag: ${{ inputs.fastcdr-branch == '1.1.x' && '-Dcdr_version=v1' || (inputs.fastcdr-branch == '2.x' && '-Dcdr_version=v2' || '-Dcdr_version=both' )}} defaults: run: shell: bash @@ -211,4 +213,4 @@ jobs: run: | source ${{ github.workspace }}/install/local_setup.bash cd ${{ github.workspace }}/src/fastddsgen - ./gradlew test + ./gradlew test ${{ env.cdr-test-flag }}