Sfoglia il codice sorgente

Add retries to flaky step in nightly run CI (#2306)

Adds more automated way for errors like this:
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/5328561662

Proposed dependency : https://github.com/nick-fields/retry

Co-authored-by: Maksim Litskevich <makslit@amazon.co.uk>
Zzzabiyaka 2 anni fa
parent
commit
10c96b19d0
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      .github/workflows/nightly_run.yml

+ 6 - 1
.github/workflows/nightly_run.yml

@@ -279,7 +279,12 @@ jobs:
         uses: actions/checkout@v3
 
       - name: Install dependencies
-        run: apt update && apt install -y make g++-4.8 gcc-4.8 wget git
+        uses: nick-fields/retry@v2
+        with:
+          timeout_minutes: 10
+          max_attempts: 3
+          command: apt update && apt install -y make g++-4.8 gcc-4.8 wget git
+          on_retry_command: sudo rm -r /var/lib/apt/lists/*
 
       - name: Install cmake
         run: |