Browse Source

Retry make getdeps 250 times.

Miku AuahDark 2 years ago
parent
commit
39763bba2f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .github/workflows/main.yml

+ 10 - 0
.github/workflows/main.yml

@@ -24,6 +24,16 @@ jobs:
       uses: actions/checkout@v3
       uses: actions/checkout@v3
       with:
       with:
         path: love2d-${{ github.sha }}
         path: love2d-${{ github.sha }}
+    - name: Get Dependencies for AppImage
+      shell: python
+      env:
+        LOVE_BRANCH: ${{ github.sha }}
+      run: |
+        import os
+        for i in range(250):
+            if os.system(f"make getdeps LOVE_BRANCH={os.environ['LOVE_BRANCH']}") == 0:
+                raise SystemExit(0)
+        raise Exception("make getdeps failed")
     - name: Build AppImage
     - name: Build AppImage
       run: make LOVE_BRANCH=${{ github.sha }}
       run: make LOVE_BRANCH=${{ github.sha }}
     - name: Print LuaJIT branch
     - name: Print LuaJIT branch