Skip to content

Commit f67f9d2

Browse files
committed
Add git ref parameters for POCO, libprojectM and projectMSDL in release workflows
1 parent ae89465 commit f67f9d2

3 files changed

Lines changed: 87 additions & 3 deletions

File tree

.github/workflows/release-linux.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,39 @@ name: Build Release Package for Linux
66

77
on:
88
workflow_dispatch:
9+
inputs:
10+
projectMSDLref:
11+
description: "projectMSDL Git reference (branch, tag or commit hash)"
12+
required: true
13+
default: "master"
14+
type: string
15+
projectMref:
16+
description: "libprojectM Git reference (branch, tag or commit hash)"
17+
required: true
18+
default: "master"
19+
type: string
20+
pocoref:
21+
description: "POCO Git reference (branch, tag or commit hash)"
22+
required: true
23+
default: "poco-1.14.1"
24+
type: string
925
workflow_call:
26+
inputs:
27+
projectMSDLref:
28+
description: "projectMSDL Git reference (branch, tag or commit hash)"
29+
required: false
30+
default: "master"
31+
type: string
32+
projectMref:
33+
description: "libprojectM Git reference (branch, tag or commit hash)"
34+
required: false
35+
default: "master"
36+
type: string
37+
pocoref:
38+
description: "POCO Git reference (branch, tag or commit hash)"
39+
required: false
40+
default: "poco-1.14.1"
41+
type: string
1042

1143
jobs:
1244
build-deb:
@@ -28,7 +60,7 @@ jobs:
2860
with:
2961
repository: pocoproject/poco
3062
path: poco
31-
ref: 'poco-1.14.1'
63+
ref: ${{ inputs.pocoref }}
3264
submodules: recursive
3365

3466
- name: Build Poco
@@ -57,6 +89,7 @@ jobs:
5789
with:
5890
repository: projectM-visualizer/projectm
5991
path: projectm
92+
ref: ${{ inputs.projectMref }}
6093
submodules: recursive
6194

6295
- name: Build/Install libprojectM
@@ -73,6 +106,7 @@ jobs:
73106
uses: actions/checkout@v4
74107
with:
75108
path: frontend-sdl2
109+
ref: ${{ inputs.projectMSDLref }}
76110
submodules: recursive
77111

78112
- name: Checkout Cream of the Crop preset pack
@@ -130,7 +164,7 @@ jobs:
130164
with:
131165
repository: pocoproject/poco
132166
path: poco
133-
ref: 'poco-1.14.1'
167+
ref: ${{ inputs.pocoref }}
134168
submodules: recursive
135169

136170
- name: Build Poco
@@ -159,6 +193,7 @@ jobs:
159193
with:
160194
repository: projectM-visualizer/projectm
161195
path: projectm
196+
ref: ${{ inputs.projectMref }}
162197
submodules: recursive
163198

164199
- name: Build/Install libprojectM
@@ -175,6 +210,7 @@ jobs:
175210
uses: actions/checkout@v4
176211
with:
177212
path: frontend-sdl2
213+
ref: ${{ inputs.projectMSDLref }}
178214
submodules: recursive
179215

180216
- name: Checkout Cream of the Crop preset pack

.github/workflows/release-macos.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,39 @@ name: Build Release Package for macOS
44

55
on:
66
workflow_dispatch:
7+
inputs:
8+
projectMSDLref:
9+
description: "projectMSDL Git reference (branch, tag or commit hash)"
10+
required: true
11+
default: "master"
12+
type: string
13+
projectMref:
14+
description: "libprojectM Git reference (branch, tag or commit hash)"
15+
required: true
16+
default: "master"
17+
type: string
18+
pocoref:
19+
description: "POCO Git reference (branch, tag or commit hash)"
20+
required: true
21+
default: "poco-1.14.1"
22+
type: string
723
workflow_call:
24+
inputs:
25+
projectMSDLref:
26+
description: "projectMSDL Git reference (branch, tag or commit hash)"
27+
required: false
28+
default: "master"
29+
type: string
30+
projectMref:
31+
description: "libprojectM Git reference (branch, tag or commit hash)"
32+
required: false
33+
default: "master"
34+
type: string
35+
pocoref:
36+
description: "POCO Git reference (branch, tag or commit hash)"
37+
required: false
38+
default: "poco-1.14.1"
39+
type: string
840
secrets:
941
MACOS_CERTIFICATE_APPLICATION:
1042
required: true
@@ -52,7 +84,7 @@ jobs:
5284
with:
5385
repository: pocoproject/poco
5486
path: poco
55-
ref: 'poco-1.14.1'
87+
ref: ${{ inputs.pocoref }}
5688
submodules: recursive
5789

5890
- name: Build Poco
@@ -86,6 +118,7 @@ jobs:
86118
with:
87119
repository: projectM-visualizer/projectm
88120
path: projectm
121+
ref: ${{ inputs.projectMref }}
89122
submodules: recursive
90123

91124
- name: Build/Install libprojectM
@@ -103,6 +136,7 @@ jobs:
103136
uses: actions/checkout@v4
104137
with:
105138
path: frontend-sdl2
139+
ref: ${{ inputs.projectMSDLref }}
106140
submodules: recursive
107141

108142
- name: Checkout Cream of the Crop preset pack

.github/workflows/release-windows.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@
33
# including projectM.
44
name: Build Release Package for Windows
55

6+
# On Windows, we're using vcpkg for the latest POCO and liprojectM packages.
67
on:
78
workflow_dispatch:
9+
inputs:
10+
projectMSDLref:
11+
description: "projectMSDL Git reference (branch, tag or commit hash)"
12+
required: true
13+
default: "master"
14+
type: string
815
workflow_call:
16+
inputs:
17+
projectMSDLref:
18+
description: "projectMSDL Git reference (branch, tag or commit hash)"
19+
required: false
20+
default: "master"
21+
type: string
922

1023
jobs:
1124
build:
@@ -47,6 +60,7 @@ jobs:
4760
uses: actions/checkout@v4
4861
with:
4962
path: frontend-sdl2
63+
ref: ${{ inputs.projectMSDLref }}
5064
submodules: recursive
5165

5266
- name: Checkout Cream of the Crop preset pack

0 commit comments

Comments
 (0)