File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,10 @@ jobs:
108108 if : github.event_name != 'pull_request'
109109 shell : bash
110110 run : |
111- for img in ${{ needs.build.outputs.image }}; do
111+ IMAGES="${{ needs.build.outputs.image }}"
112+ while read -r img; do
112113 docker pull "$img"
113- done
114+ done <<< "$IMAGES"
114115
115116 - name : Download and load image artifact for pull_request runs
116117 if : github.event_name == 'pull_request'
@@ -131,20 +132,21 @@ jobs:
131132 LIB_EXTENSION : ${{ matrix.lib_extension }}
132133 run : |
133134 IMAGES="${{ needs.build.outputs.image }}"
134- for img in $IMAGES ; do
135+ while read -r img ; do
135136 docker run --rm \
136137 -v "${{ github.workspace }}":/work \
137138 -w /work \
138139 "$img" \
139140 bash -lc "\
141+ rm -rf test/resources/FMU_Interaction1/sources/build_${TOOLCHAIN} test/resources/FMU_Interaction1/binaries/${FMI_PLATFORM_TUPLE}/Interaction1.${LIB_EXTENSION} &&\
140142 cmake -S test/resources/FMU_Interaction1/sources \
141143 -B test/resources/FMU_Interaction1/sources/build_${TOOLCHAIN} \
142144 -DFMI_INTERFACE_HEADER_FILES_DIRECTORY=/work/test/resources/fmi \
143145 -DCMAKE_TOOLCHAIN_FILE=/opt/cmake/toolchain/${TOOLCHAIN}.cmake && \
144146 cmake --build test/resources/FMU_Interaction1/sources/build_${TOOLCHAIN} --target install && \
145147 test -f test/resources/FMU_Interaction1/binaries/${FMI_PLATFORM_TUPLE}/Interaction1.${LIB_EXTENSION} && \
146148 cmake --build test/resources/FMU_Interaction1/sources/build_${TOOLCHAIN} --target create_fmu"
147- done
149+ done <<< "$IMAGES"
148150
149151 - name : Upload Interaction1.fmu
150152 uses : actions/upload-artifact@v5
You can’t perform that action at this time.
0 commit comments