File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 112112 echo "features=use-snmalloc" >> $GITHUB_OUTPUT
113113 #echo "features=use-tcmalloc-static" >> $GITHUB_OUTPUT
114114 # cargo-dist=cargo
115- echo "cargo=cargo-zigbuild" >> $GITHUB_OUTPUT
116- # echo "cargo=cargo" >> $GITHUB_OUTPUT
115+ # echo "cargo=cargo-zigbuild" >> $GITHUB_OUTPUT
116+ echo "cargo=cargo" >> $GITHUB_OUTPUT
117117 ;;
118118 *aarch64*windows*)
119119 echo "features=use-snmalloc" >> $GITHUB_OUTPUT
173173 sed -i -e "s/features = .*/features = [\"${{ steps.features.outputs.features }}\"]/" dist-workspace.toml
174174 if [[ "${{ steps.features.outputs.cargo }}" == "cargo-zigbuild" ]];then
175175 dist manifest ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
176- if [[ "${{ join(matrix.targets) }}" == "${TARGET:=$(rustc -vV | sed -n 's/^host: //p')}" ]];then
177- ${{ steps.features.outputs.cargo }} zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }}
178- else
179- ${{ steps.features.outputs.cargo }} zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }} --target ${{ join(matrix.targets) }}
176+ TARGET="$(rustc -vV | sed -n 's/^host: //p')"
177+ if [[ "${{ join(matrix.targets) }}" == "$TARGET" ]];then
178+ echo "1:$TARGET"
179+ cargo zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }}
180+ else
181+ echo "2:$TARGET"
182+ cagro zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }} --target ${{ join(matrix.targets) }}
180183 fi
181184
182185 mkdir -p target/distrib/dict-to-mozc-${{ join(matrix.targets) }}/
Original file line number Diff line number Diff line change @@ -238,8 +238,8 @@ jobs:
238238 *linux*)
239239 echo "features=use-snmalloc" >> $GITHUB_OUTPUT
240240 #echo "features=use-tcmalloc-static" >> $GITHUB_OUTPUT
241- echo "cargo=cargo-zigbuild" >> $GITHUB_OUTPUT
242- # echo "cargo=cargo" >> $GITHUB_OUTPUT
241+ # echo "cargo=cargo-zigbuild" >> $GITHUB_OUTPUT
242+ echo "cargo=cargo" >> $GITHUB_OUTPUT
243243 ;;
244244 *aarch64*windows*)
245245 echo "features=use-snmalloc" >> $GITHUB_OUTPUT
@@ -307,10 +307,13 @@ jobs:
307307 sed -i -e "s/features = .*/features = [\"${{ steps.features.outputs.features }}\"]/" dist-workspace.toml
308308 if [[ "${{ steps.features.outputs.cargo }}" == "cargo-zigbuild" ]];then
309309 dist manifest ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
310- if [[ "${{ join(matrix.targets) }}" == "${TARGET:=$(rustc -vV | sed -n 's/^host: //p')}" ]];then
311- ${{ steps.features.outputs.cargo }} zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }}
312- else
313- ${{ steps.features.outputs.cargo }} zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }} --target ${{ join(matrix.targets) }}
310+ TARGET="$(rustc -vV | sed -n 's/^host: //p')"
311+ if [[ "${{ join(matrix.targets) }}" == "$TARGET" ]];then
312+ echo "1:$TARGET"
313+ cargo zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }} -vv
314+ else
315+ echo "2:$TARGET"
316+ cargo zigbuild --profile dist --workspace -F ${{ steps.features.outputs.features }} --target ${{ join(matrix.targets) }}
314317 fi
315318
316319 mkdir -p target/distrib/dict-to-mozc-${{ join(matrix.targets) }}/
You can’t perform that action at this time.
0 commit comments