Skip to content

Commit

Permalink
chore(DotNet) Retry building demo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guillaume-tgl committed Jun 3, 2024
1 parent c7612d8 commit dd8f04f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/dotnet-maui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dd8f04f

Please sign in to comment.