Skip to content

Commit 67ac131

Browse files
committed
fix workflow
1 parent aa4f977 commit 67ac131

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/setup.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
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
@@ -173,10 +173,13 @@
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) }}/

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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) }}/

0 commit comments

Comments
 (0)