From 74b3b1e496b4f8aebce7160675e319fda6f346eb Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Mon, 27 Nov 2023 22:06:05 -0500 Subject: [PATCH] i#3544 RV64: Fix CI rsync issue Adds a check for the existence of a package install dir when manually copying packages for the cross-compile setup as it seems to not be present in newer versions of the packages. Issue: #3544 --- .github/workflows/ci-riscv64.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-riscv64.yml b/.github/workflows/ci-riscv64.yml index 2228a4f17df..1029e14986d 100644 --- a/.github/workflows/ci-riscv64.yml +++ b/.github/workflows/ci-riscv64.yml @@ -85,7 +85,9 @@ jobs: for i in *.deb; do dpkg-deb -x $i ../extract; done for i in include lib; do sudo rsync -av ../extract/usr/${i}/riscv64-linux-gnu/ /usr/riscv64-linux-gnu/${i}/; done sudo rsync -av ../extract/usr/include/ /usr/riscv64-linux-gnu/include/ - sudo rsync -av ../extract/lib/riscv64-linux-gnu/ /usr/riscv64-linux-gnu/lib/ + if test -e "../extract/lib/riscv64-linux-gnu/"; then \ + sudo rsync -av ../extract/lib/riscv64-linux-gnu/ /usr/riscv64-linux-gnu/lib/; \ + fi - name: Run Suite working-directory: ${{ github.workspace }}