Skip to content

Commit adc7637

Browse files
committed
genpatch.yml: gen patches for all branches
1 parent 257836c commit adc7637

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/genpatch.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
name: Generate patch
22
on:
33
push:
4-
branches: hdmi_frl
4+
branches:
5+
- hdmi_frl
6+
- hdmi_frl_stable
57

68
jobs:
79
generate_patch:
810
runs-on: ubuntu-24.04
11+
strategy:
12+
matrix:
13+
include:
14+
- base: stable
15+
target: hdmi_frl_stable
16+
- base: master
17+
target: hdmi_frl
18+
if: github.ref_name == matrix.target
919
steps:
1020
- name: Checkout repository
1121
uses: actions/checkout@v4
1222
with:
13-
ref: hdmi_frl
23+
ref: ${{ matrix.target }}
1424
fetch-depth: 0
1525
- name: Generate patch
16-
run: git diff origin/master > 0001-amdgpu-frl.patch
26+
run: git diff origin/${{ matrix.base }}..HEAD > 0001-${{ matrix.target }}.patch
1727
- name: Save artifacts
1828
uses: actions/upload-artifact@v4
1929
with:
20-
name: "Patch"
21-
path: 0001-amdgpu-frl.patch
30+
name: "Patch - ${{ matrix.base }}"
31+
path: 0001-${{ matrix.target }}.patch
2232
retention-days: 30

0 commit comments

Comments
 (0)