@@ -64,49 +64,25 @@ runs:
6464 target=${{ inputs.target }}
6565 echo "BUILD_ARCH=${target/-unknown-linux-*}" >> $GITHUB_ENV
6666
67- # build all binaries for debug
68- - name : Build Debug
69- if : env.BUILD_PROFILE == 'debug' && inputs.artifacts == 'all'
70- shell : bash
71- run : |
72- artifacts="meta,metactl,metabench,query,sqllogictests"
73- for artifact in ${artifacts//,/ }; do
74- echo "==> building databend-$artifact ..."
75- cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
76- done
77- cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }}
78- ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-*
79-
80- - name : Build Debug for specific artifacts
81- if : env.BUILD_PROFILE == 'debug' && inputs.artifacts != 'all'
82- shell : bash
83- run : |
84- artifacts="${{ inputs.artifacts }}"
85- for artifact in ${artifacts//,/ }; do
86- echo "==> building databend-$artifact ..."
87- cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
88- done
89- ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact
90-
9167 - name : Build Release
92- if : env.BUILD_PROFILE == 'release' && inputs.artifacts == 'all'
68+ if : inputs.artifacts == 'all'
9369 shell : bash
9470 run : |
9571 artifacts="meta,metactl,metabench,query,sqllogictests"
9672 for artifact in ${artifacts//,/ }; do
9773 echo "==> building databend-$artifact ..."
98- cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
74+ cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --profile ${{ env.BUILD_PROFILE }} --bin databend-$artifact
9975 done
10076 ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact
10177
10278 - name : Build Release for specific artifacts
103- if : env.BUILD_PROFILE == 'release' && inputs.artifacts != 'all'
79+ if : inputs.artifacts != 'all'
10480 shell : bash
10581 run : |
10682 artifacts="${{ inputs.artifacts }}"
10783 for artifact in ${artifacts//,/ }; do
10884 echo "==> building databend-$artifact ..."
109- cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
85+ cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --profile ${{ env.BUILD_PROFILE }} --bin databend-$artifact
11086 done
11187 ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact
11288
0 commit comments