Skip to content

Commit b9a4ca8

Browse files
Fix cargo-dist
1 parent e8755b7 commit b9a4ca8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ jobs:
143143
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
144144
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
145145
echo "EOF" >> "$GITHUB_OUTPUT"
146+
146147
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
147148
- name: "Upload artifacts"
148149
uses: actions/upload-artifact@v4
@@ -151,6 +152,7 @@ jobs:
151152
path: |
152153
${{ steps.cargo-dist.outputs.paths }}
153154
${{ env.BUILD_MANIFEST_NAME }}
155+
154156
# Build and package all the platform-agnostic(ish) things
155157
build-global-artifacts:
156158
needs:
@@ -182,10 +184,12 @@ jobs:
182184
run: |
183185
cargo dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json
184186
echo "cargo dist ran successfully"
187+
185188
# Parse out what we just built and upload it to scratch storage
186189
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
187190
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
188191
echo "EOF" >> "$GITHUB_OUTPUT"
192+
189193
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
190194
- name: "Upload artifacts"
191195
uses: actions/upload-artifact@v4
@@ -257,7 +261,9 @@ jobs:
257261
run: |
258262
# Write and read notes from a file to avoid quoting breaking things
259263
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
264+
260265
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
266+
261267
announce:
262268
needs:
263269
- plan

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ cargo-dist-version = "0.19.1"
4343
# CI backends to support
4444
ci = "github"
4545
# The installers to generate for each app
46-
installers = []
46+
installers = ["shell"]
4747
# Target platforms to build apps for (Rust target-triple syntax)
4848
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
4949
# Publish jobs to run in CI
5050
pr-run-mode = "plan"
51+
# Path that installers should place binaries in
52+
install-path = "CARGO_HOME"
53+
# Whether to install an updater program
54+
install-updater = false
5155

5256
[package.metadata.dist]
5357
dist = true

0 commit comments

Comments
 (0)