mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-06-29 10:45:31 +02:00
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:
parent
5f3a78cee2
commit
77ae56f72d
1 changed files with 6 additions and 0 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue