Skip to content

Commit 6fb8a18

Browse files
committed
Make "Uncompress & move binaries" step less error prone for unit_tests job
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
1 parent 077799f commit 6fb8a18

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/regression.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,22 +162,25 @@ jobs:
162162
name: ${{format('Forward{0}', matrix.tag)}}
163163
- name: Uncompress and Move Binaries
164164
run: |
165+
ls -lah
165166
BIN_FOLDER="$PWD/install/bin"
166167
mkdir -p $BIN_FOLDER
167168
ls -laH $BIN_FOLDER
168169
for type in Base Reverse Forward; do
169170
TYPE_FOLDER="${type}${{matrix.tag}}"
170-
echo "Processing '$TYPE_FOLDER' ..."
171171
if [ -d $TYPE_FOLDER ]; then
172+
echo "Processing '$TYPE_FOLDER' ..."
172173
pushd $TYPE_FOLDER
173174
ls -lah
174175
tar -zxvf install_bin.tgz
175176
ls -laH install/bin/
176177
cp -r install/bin/* $BIN_FOLDER;
177-
popd;
178+
popd;
179+
else
180+
echo "$TYPE_FOLDER does not exist!"
178181
fi
179182
done
180-
chmod a+x $BIN_FOLDER/*
183+
find $BIN_FOLDER -type f -exec chmod a+x '{}' \;
181184
ls -lahR $BIN_FOLDER
182185
- name: Run Unit Tests
183186
uses: docker://ghcr.io/su2code/su2/test-su2:220614-1237

0 commit comments

Comments
 (0)