58
58
description : ' Asset Name (if upload-package is true)'
59
59
required : false
60
60
default : ' build-docker-package'
61
+ tag_postfix :
62
+ type : string
63
+ description : ' Either -arm or empty string'
64
+ required : false
65
+ default : ' '
61
66
secrets :
62
67
LNB_TOKEN :
63
68
required : false
64
69
65
70
jobs :
66
71
67
72
build-docker :
68
- runs-on : ubuntu-22.04
73
+ runs-on : ubuntu-22.04${{ inputs.tag_postfix }}
69
74
steps :
70
75
- name : Free additional disk space (remove Android SDK + Tools)
71
76
continue-on-error : true
@@ -113,8 +118,8 @@ jobs:
113
118
vcpkg_sha_short=$(git rev-parse --short=8 HEAD)
114
119
echo "vcpkg_sha_short=$vcpkg_sha_short" >> $GITHUB_OUTPUT
115
120
docker_build_label=hpccsystems/platform-build-${{ inputs.os }}
116
- echo "docker_tag=$docker_build_label:$vcpkg_sha_short" >> $GITHUB_OUTPUT
117
- echo "docker_tag_candidate_base=$docker_build_label:$branch_label" >> $GITHUB_OUTPUT
121
+ echo "docker_tag=$docker_build_label:$vcpkg_sha_short${{ inputs.tag_postfix }} " >> $GITHUB_OUTPUT
122
+ echo "docker_tag_candidate_base=$docker_build_label:$branch_label${{ inputs.tag_postfix }} " >> $GITHUB_OUTPUT
118
123
119
124
- name : Print vars
120
125
shell : " bash"
@@ -133,12 +138,12 @@ jobs:
133
138
-
uses :
hendrikmuhs/[email protected]
134
139
with :
135
140
save : ${{ inputs.update-cache == true }}
136
- key : docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }}
141
+ key : docker${{ inputs.tag_postfix }} -${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }}
137
142
restore-keys : |
138
- docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-
139
- docker-${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-
140
- docker-${{ inputs.os }}-${{ inputs.build-type }}-
141
- docker-${{ inputs.os }}-
143
+ docker${{ inputs.tag_postfix }} -${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-${{ inputs.containerized == true && 'k8s' || 'bare-metal' }}-
144
+ docker${{ inputs.tag_postfix }} -${{ inputs.os }}-${{ inputs.build-type }}-${{ steps.vars.outputs.branch_label }}-
145
+ docker${{ inputs.tag_postfix }} -${{ inputs.os }}-${{ inputs.build-type }}-
146
+ docker${{ inputs.tag_postfix }} -${{ inputs.os }}-
142
147
143
148
- name : Docker build image
144
149
uses : docker/build-push-action@v5
@@ -149,7 +154,7 @@ jobs:
149
154
push : false
150
155
load : true
151
156
build-args : |
152
- VCPKG_REF=${{ steps.vars.outputs.vcpkg_sha_short }}
157
+ VCPKG_REF=${{ steps.vars.outputs.vcpkg_sha_short }}${{ inputs.tag_postfix }}
153
158
tags : |
154
159
${{ steps.vars.outputs.docker_tag }}
155
160
${{ steps.vars.outputs.docker_tag_candidate_base }}
@@ -174,7 +179,7 @@ jobs:
174
179
--mount source="${{ github.workspace }}/build",target=/hpcc-dev/build,type=bind,consistency=delegated \
175
180
--mount source="${{ github.workspace }}/.ccache",target=/root/.ccache,type=bind,consistency=delegated \
176
181
${{ steps.vars.outputs.docker_tag }} "\
177
- cmake -G Ninja -S /hpcc-dev/${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B /hpcc-dev/build -DHPCC_SOURCE_DIR=/hpcc-dev/HPCC-Platform -DVCPKG_FILES_DIR=/hpcc-dev - DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }} && \
182
+ cmake -G Ninja -S /hpcc-dev/${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B /hpcc-dev/build -DHPCC_SOURCE_DIR=/hpcc-dev/HPCC-Platform -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }} && \
178
183
cmake --build /hpcc-dev/build --parallel ${{ inputs.upload-package == true && '--target package' || ''}}"
179
184
done
180
185
0 commit comments