ci: rerun m1 three times (#17089)

The m1 build is extra flaky, maybe running it multiple times will help.
This commit is contained in:
Gary Verhaegen 2023-07-06 16:42:20 +02:00 committed by GitHub
parent f6a78df1c8
commit fbe4d0de1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,14 @@ steps:
displayName: 'Platform-agnostic lints and checks'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- bash: ./build.sh "_${{parameters.name}}"
- bash: |
set -euo pipefail
p="_${{parameters.name}}"
if [ "$p" == "_m1" ]; then
./build.sh $p || ./build.sh $p || ./build.sh $p || ./build.sh $p
else
./build.sh $p
fi
displayName: 'Build'
env:
DAML_SDK_RELEASE_VERSION: ${{parameters.release_tag}}