From cbc13fa32c0ba57b8e043ec77ce087470b1c3ff2 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Thu, 26 Jan 2023 08:01:02 +1300 Subject: [PATCH] Use wait-for rather than needs Allows test jobs to start long-running steps before other jobs on which it depends have completed. --- .github/workflows/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 054f81b..c19af72 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -231,7 +231,6 @@ jobs: test: name: 'Test' - needs: [ import_assets, build_docker ] #, build_native ] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -249,16 +248,23 @@ jobs: with: version: ${{ matrix.godot_version }} bits: ${{ matrix.bits }} - - name: Install release binary build artifacts - uses: actions/download-artifact@v3 + - name: Wait for build + uses: fountainhead/action-wait-for-check@v1.1.0 with: - name: libgodot-xterm-release - path: addons/godot_xterm/native/bin + token: ${{ secrets.GITHUB_TOKEN }} + checkName: Build Docker (debug, x86_${{ matrix.bits }}) + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Install debug binary build artifacts uses: actions/download-artifact@v3 with: name: libgodot-xterm-debug path: addons/godot_xterm/native/bin + - name: Wait for asset import + uses: fountainhead/action-wait-for-check@v1.1.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + checkName: Import Assets (${{ matrix.os }}) + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Download imports uses: actions/download-artifact@v3 with: