fix(ci): fail benchmarks if build failed

Otherwise the benchmark steps will run indefinitely.

Ideally this job would be skipped instead, but because of the way
things are set up to start in paralell, we can't skip this job midway
through.

lol
This commit is contained in:
Leroy Hopson 2025-06-29 10:19:22 +12:00
parent 5f3a78cee2
commit 77ae56f72d
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -356,10 +356,16 @@ jobs:
run: godot --editor --headless --quit-after 100 || true run: godot --editor --headless --quit-after 100 || true
- name: Wait for build - name: Wait for build
uses: fountainhead/action-wait-for-check@v1.2.0 uses: fountainhead/action-wait-for-check@v1.2.0
id: wait-for-build
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
checkName: "Build (linux, x86_64, release) #${{ github.run_number }}" checkName: "Build (linux, x86_64, release) #${{ github.run_number }}"
ref: ${{ github.event.pull_request.head.sha || github.sha }} ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Fail if build failed
if: ${{ steps.wait-for-build.outputs.conclusion != 'success' }}
run: |
echo "Build failed, can't benchmark!"
exit 1
- name: Install binary build artifacts - name: Install binary build artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with: