Skip to content

Commit

Permalink
trigger kernel rebuild on configuration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonor committed Jul 31, 2024
1 parent e4b9263 commit edebc19
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,23 @@ jobs:
ovmf: ${{ steps.filter.outputs.ovmf }}
qemu: ${{ steps.filter.outputs.qemu }}

kernel-config-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
with:
filters: |
config: cfg/.config
outputs:
config: ${{ steps.filter.outputs.config }}

kernel:
runs-on: ubuntu-latest

needs: [image-ref-changes, build-script-changes]
if: needs.image-ref-changes.outputs.kernel == 'true' || needs.build-script-changes.outputs.kernel == 'true'
if: needs.image-ref-changes.outputs.kernel == 'true' || needs.build-script-changes.outputs.kernel == 'true' || needs.kernel-config-changes.outputs.config == 'true'

strategy:
matrix:
Expand Down

0 comments on commit edebc19

Please sign in to comment.