Skip to content

Commit c400a75

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

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/genpatch.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
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
918
steps:
1019
- name: Checkout repository
1120
uses: actions/checkout@v4
1221
with:
13-
ref: hdmi_frl
22+
ref: ${{ matrix.target }}
1423
fetch-depth: 0
1524
- name: Generate patch
16-
run: git diff origin/master > 0001-amdgpu-frl.patch
25+
run: git diff origin/${{ matrix.base }}..HEAD > 0001-${{ matrix.target }}.patch
1726
- name: Save artifacts
1827
uses: actions/upload-artifact@v4
1928
with:
20-
name: "Patch"
21-
path: 0001-amdgpu-frl.patch
29+
name: "Patch - ${{ matrix.base }}"
30+
path: 0001-${{ matrix.target }}.patch
2231
retention-days: 30

0 commit comments

Comments
 (0)