From e2181ed200a30e257927ce94b958f2daa3947e6e Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Sat, 17 Feb 2024 12:05:33 +0100 Subject: [PATCH] Attempt at working around flakiness in Windows workflow (#1570) That mv operation fails from time to time for unknown reasons. --- .github/workflows/ci-toolchain.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-toolchain.yml b/.github/workflows/ci-toolchain.yml index 0f4cecc6..6cbc9302 100644 --- a/.github/workflows/ci-toolchain.yml +++ b/.github/workflows/ci-toolchain.yml @@ -60,8 +60,10 @@ jobs: run: ./bin/alr -d -n printenv || ./bin/alr -n -v -d printenv - shell: bash - run: mv ./bin ./bin-old - # Windows doesn't allow to replace a running exe so the next command fails otherwise + run: mv ./bin ./bin-old || { sleep 5s && sudo mv ./bin ./bin-old; } + # Windows doesn't allow to replace a running exe so the next command + # fails otherwise. Also, this mv fails sometimes so we try twice JIC. + - name: SELF-BUILD run: ./bin-old/alr -d -n build -- 2.39.5