From dd8f04fb83b848c587205920f83d7aa944948c17 Mon Sep 17 00:00:00 2001 From: guillaume Date: Mon, 3 Jun 2024 17:57:35 +0200 Subject: [PATCH] chore(DotNet) Retry building demo Often, it takes a couple minutes for the plugin to be available on nuget after we publish it, and it makes the build job fail. Here we retry once if the build fails with a 5 minute pause between the 2 attempts. --- .github/workflows/dotnet-maui.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet-maui.yml b/.github/workflows/dotnet-maui.yml index 8d4a5ba..dfd88ad 100644 --- a/.github/workflows/dotnet-maui.yml +++ b/.github/workflows/dotnet-maui.yml @@ -14,8 +14,13 @@ jobs: - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '15.1' - - name: Build demo - run: | - cd dotnet-maui - sudo dotnet workload restore - dotnet build SimpleDemo.csproj + # Retry in case plugin is not yet available on nuget + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 2 + retry_wait_seconds: 300 + command: | + cd dotnet-maui + sudo dotnet workload restore + dotnet build SimpleDemo.csproj