Skip to content

Commit 0f17fe2

Browse files
committed
Fix cargo-dist command invocation in CI workflow
cargo-binstall installs the binary as 'dist' not 'cargo-dist', so 'cargo dist' fails with "no such command". Use 'dist' directly since that's the actual binary name installed by taiki-e/install-action when falling back to cargo-binstall. Fixes: Release workflow "plan" job failure
1 parent ee35223 commit 0f17fe2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
CARGO_TERM_COLOR: always
3333

3434
jobs:
35-
# Run 'cargo dist plan' to determine what tasks we need to do
35+
# Run 'dist plan' to determine what tasks we need to do
3636
plan:
3737
runs-on: ubuntu-latest
3838
outputs:
@@ -58,7 +58,7 @@ jobs:
5858
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
5959
- id: plan
6060
run: |
61-
cargo dist plan ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }} --output-format=json > plan-dist-manifest.json
61+
dist plan ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }} --output-format=json > plan-dist-manifest.json
6262
echo "manifest=$(jq -c '.' plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
6363
- name: Upload dist-manifest.json
6464
uses: actions/upload-artifact@v4
@@ -100,7 +100,7 @@ jobs:
100100
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
101101
- name: Build artifacts
102102
run: |
103-
cargo dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
103+
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
104104
echo "dist manifest: $(cat dist-manifest.json)"
105105
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
106106
- name: Upload artifacts
@@ -134,7 +134,7 @@ jobs:
134134
merge-multiple: true
135135
- name: Build global artifacts
136136
run: |
137-
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
137+
dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
138138
cat dist-manifest.json
139139
- name: Upload artifacts
140140
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)