|
70 | 70 | type: boolean |
71 | 71 | description: "Update Memgraph submodule to the latest commit" |
72 | 72 | default: true |
| 73 | + package_deb: |
| 74 | + type: string |
| 75 | + description: "Build deb package (true|false|default)" |
| 76 | + # default is build only for Release/RelWithDebInfo + amd64/arm64 (other combinations are not actually different) |
| 77 | + default: default |
73 | 78 |
|
74 | 79 | env: |
75 | 80 | OS: "${{ inputs.arch == 'arm64' && 'ubuntu-24.04-aarch64' || 'ubuntu-24.04' }}${{ inputs.malloc && '-malloc' || '' }}${{ inputs.mage_build_type == 'RelWithDebInfo' && '-relwithdebinfo' || '' }}" |
@@ -111,6 +116,29 @@ jobs: |
111 | 116 | run: | |
112 | 117 | ./scripts/pull-e2e-docker-images.sh & |
113 | 118 |
|
| 119 | +
|
| 120 | + - name: Check package deb build |
| 121 | + env: |
| 122 | + INPUT_PACKAGE_DEB: "${{ inputs.package_deb }}" |
| 123 | + run: | |
| 124 | + if [[ "$INPUT_PACKAGE_DEB" == "true" ]]; then |
| 125 | + package_deb=true |
| 126 | + elif [[ "$INPUT_PACKAGE_DEB" == "false" ]]; then |
| 127 | + package_deb=false |
| 128 | + else |
| 129 | + if [[ "$MALLOC" == true ]]; then |
| 130 | + package_deb=false |
| 131 | + else |
| 132 | + package_deb=true |
| 133 | + fi |
| 134 | + fi |
| 135 | + if [[ "$package_deb" == true ]]; then |
| 136 | + echo "Building deb package" |
| 137 | + else |
| 138 | + echo "Not building deb package" |
| 139 | + fi |
| 140 | + echo "PACKAGE_DEB=${package_deb}" >> $GITHUB_ENV |
| 141 | +
|
114 | 142 | - name: Check mgdeps-cache availability |
115 | 143 | run: | |
116 | 144 | if [ "$ARCH" == "amd64" ]; then |
@@ -208,7 +236,7 @@ jobs: |
208 | 236 | --container-name $CONTAINER_NAME |
209 | 237 |
|
210 | 238 | - name: Build DEB package in MGBUILD container |
211 | | - if: ${{ inputs.push_to_github || inputs.push_to_s3 }} |
| 239 | + if: ${{ (inputs.push_to_github || inputs.push_to_s3) && env.PACKAGE_DEB == 'true' }} |
212 | 240 | run: | |
213 | 241 | ./scripts/container-package-deb.sh \ |
214 | 242 | --arch $ARCH \ |
@@ -349,7 +377,7 @@ jobs: |
349 | 377 | path: "mage.tar.gz" |
350 | 378 |
|
351 | 379 | - name: Push DEB package to GitHub |
352 | | - if: ${{ inputs.push_to_github }} |
| 380 | + if: ${{ inputs.push_to_github && env.PACKAGE_DEB == 'true' }} |
353 | 381 | uses: actions/upload-artifact@v4 |
354 | 382 | with: |
355 | 383 | name: "${ARTIFACT_NAME}-deb" |
|
0 commit comments