1212 preamble :
1313 name : Publish Release
1414 env :
15- COMMUNITY_REF : " dc1cdacdbdda6e5ca1c5b836e130c2deb2d2fe62 "
15+ COMMUNITY_REF : " 4551e629c308a5a77c4a7c05c36b8219e86ab4a9 "
1616 # COMMUNITY_REF: <GIT REF>
17+ GITHUB_ACCOUNT : ${{ github.repository_owner }}
1718 runs-on : ubuntu-22.04
1819 permissions :
1920 contents : write
@@ -29,10 +30,14 @@ jobs:
2930 candidate_branch : ${{ steps.vars.outputs.candidate_branch }}
3031 cmake_docker_config : ${{ steps.vars.outputs.cmake_docker_config }}
3132 gpg_import : ${{ steps.vars.outputs.gpg_import }}
33+ github_account : ${{ steps.vars.outputs.github_account }}
3234 steps :
3335 - name : Calculate vars
3436 id : vars
3537 run : |
38+ github_account=${{ env.GITHUB_ACCOUNT }}
39+ echo "github_account=$github_account" >> $GITHUB_OUTPUT
40+ echo "folder_platform=${{ github.workspace }}/HPCC-Platform" >> $GITHUB_OUTPUT
3641 echo "folder_platform=${{ github.workspace }}/HPCC-Platform" >> $GITHUB_OUTPUT
3742 echo 'mount_platform=source="${{ github.workspace }}/HPCC-Platform",target=/hpcc-dev/HPCC-Platform,type=bind,consistency=cached' >> $GITHUB_OUTPUT
3843 echo "folder_build=${{ github.workspace }}/build" >> $GITHUB_OUTPUT
4651 candidate_branch=$(echo $community_base_ref | cut -d'/' -f3)
4752 echo "candidate_branch=$candidate_branch" >> $GITHUB_OUTPUT
4853 echo "candidate_base_branch=$(echo $candidate_branch | awk -F'.' -v OFS='.' '{ $3="x"; print }')" >> $GITHUB_OUTPUT
49- echo "cmake_docker_config=-DCMAKE_BUILD_TYPE=RelWithDebInfo -DVCPKG_FILES_DIR=/hpcc-dev -DCPACK_THREADS=0 -DUSE_OPTIONAL=OFF -DSIGN_MODULES=${{ github.repository_owner == 'hpcc-systems' && 'ON' || 'OFF' }}" >> $GITHUB_OUTPUT
54+ echo "cmake_docker_config=-DCMAKE_BUILD_TYPE=RelWithDebInfo -DVCPKG_FILES_DIR=/hpcc-dev -DCPACK_THREADS=0 -DUSE_OPTIONAL=OFF -DSIGN_MODULES=${{ env.GITHUB_ACCOUNT == 'hpcc-systems' && 'ON' || 'OFF' }}" >> $GITHUB_OUTPUT
5055 echo 'gpg_import=gpg --batch --import /hpcc-dev/build/private.key' >> $GITHUB_OUTPUT
5156
5257 - name : Print vars
6065 strategy :
6166 matrix :
6267 include :
63- - os : ubuntu-22.04
68+ - os : ubuntu-24.04
69+ # - os: rockylinux-8
6470 # - os: centos-7
6571 # cmake_options_extra: "-DVCPKG_TARGET_TRIPLET=x64-centos-7-dynamic"
6672 fail-fast : false
8793 - name : Checkout HPCC-Platform
8894 uses : actions/checkout@v3
8995 with :
90- repository : ${{ github.repository_owner }}/HPCC-Platform
96+ repository : ${{ needs.preamble.outputs.github_account }}/HPCC-Platform
9197 ref : ${{ needs.preamble.outputs.community_ref }}
9298 submodules : recursive
9399 path : ${{ needs.preamble.outputs.folder_platform }}
@@ -124,8 +130,8 @@ jobs:
124130 builder : ${{ steps.buildx.outputs.name }}
125131 file : ${{ needs.preamble.outputs.folder_platform }}/dockerfiles/vcpkg/${{ matrix.os }}.dockerfile
126132 context : ${{ needs.preamble.outputs.folder_platform }}/dockerfiles/vcpkg
127- push : ${{ github.repository_owner == 'hpcc-systems' }}
128- load : ${{ github.repository_owner != 'hpcc-systems' }}
133+ push : ${{ needs.preamble.outputs.github_account == 'hpcc-systems' }}
134+ load : ${{ needs.preamble.outputs.github_account != 'hpcc-systems' }}
129135 build-args : |
130136 VCPKG_REF=${{ steps.vars.outputs.vcpkg_sha_short }}
131137 tags : |
@@ -142,19 +148,19 @@ jobs:
142148 mkdir -p ${{needs.preamble.outputs.folder_build }}
143149 ls -l
144150 echo "${{ secrets.SIGNING_SECRET }}" > ${{ needs.preamble.outputs.folder_build }}/private.key
145- plugins=("CASSANDRAEMBED" "COUCHBASEEMBED" "ECLBLAS" "H3" "JAVAEMBED" "KAFKA" "MEMCACHED" "MONGODBEMBED" "MYSQLEMBED" "NLP" "PARQUETEMBED" "REDIS" "REMBED" "SQLITE3EMBED" "SQS" "WASMEMBED" "PLATFORM" " CLIENTTOOLS_ONLY")
151+ plugins=("CASSANDRAEMBED" "COUCHBASEEMBED" "ECLBLAS" "H3" "JAVAEMBED" "KAFKA" "MEMCACHED" "MONGODBEMBED" "MYSQLEMBED" "NLP" "PARQUETEMBED" "REDIS" "REMBED" "SQLITE3EMBED" "SQS" "WASMEMBED" "CLIENTTOOLS_ONLY")
146152 for plugin in "${plugins[@]}"; do
147153 sudo rm -f ${{ needs.preamble.outputs.folder_build }}/CMakeCache.txt
148154 sudo rm -rf ${{ needs.preamble.outputs.folder_build }}/CMakeFiles
149155 docker run --rm --mount ${{ needs.preamble.outputs.mount_platform }} --mount ${{ needs.preamble.outputs.mount_build }} ${{ steps.vars.outputs.docker_tag_candidate_base }} "${{ needs.preamble.outputs.gpg_import }} && \
150- cmake -S /hpcc-dev/HPCC-Platform -B /hpcc-dev/build ${{ needs.preamble.outputs.cmake_docker_config }} -DSIGN_MODULES_PASSPHRASE=${{ secrets.SIGN_MODULES_PASSPHRASE }} -DSIGN_MODULES_KEYID=${{ secrets.SIGN_MODULES_KEYID }} -D$plugin=ON -DCONTAINERIZED=OFF -DCPACK_STRIP_FILES=OFF ${{ matrix.cmake_options_extra }} && \
156+ cmake -S /hpcc-dev/HPCC-Platform -B /hpcc-dev/build -DVCPKG_FILES_DIR=/hpcc-dev ${{ needs.preamble.outputs.cmake_docker_config }} -DSIGN_MODULES_PASSPHRASE=${{ secrets.SIGN_MODULES_PASSPHRASE }} -DSIGN_MODULES_KEYID=${{ secrets.SIGN_MODULES_KEYID }} -D$plugin=ON -DCONTAINERIZED=OFF -DCPACK_STRIP_FILES=OFF ${{ matrix.cmake_options_extra }} && \
151157 cmake --build /hpcc-dev/build --parallel $(nproc) --target package"
152158 done
153159
154160 - name : Upload Artifacts CE Plugins
155161 uses : actions/upload-artifact@v4
156162 with :
157- name : CE-HPCC-Plugins
163+ name : CE-HPCC-Plugins-${{ matrix.os }}
158164 path : |
159165 ${{ needs.preamble.outputs.folder_build }}/*.deb
160166 ${{ needs.preamble.outputs.folder_build }}/*.rpm
0 commit comments