Skip to content

Commit

Permalink
Show patch that failed and don't stop on first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Mar 21, 2024
1 parent 17f371b commit 4a5fd3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches:
- main


concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
Expand Down Expand Up @@ -288,7 +287,6 @@ jobs:
run: cargo udeps

check-example-showcase-patches-still-work:
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -309,8 +307,10 @@ jobs:
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Apply patches
run: |
CODE=0
for patch in tools/example-showcase/*.patch; do
git apply --ignore-whitespace $patch
git apply --ignore-whitespace $patch || { echo "::error::$patch failed to apply."; CODE=1; }
done
exit $CODE
- name: Build with patches
run: cargo build

0 comments on commit 4a5fd3d

Please sign in to comment.