Skip to content

Commit

Permalink
feat: use extra artifacts for schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Nov 28, 2023
1 parent 49b71b7 commit caf99ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.snap.new
/book/book/
cargo-dist/wix
/dist-manifest-schema.json

# Oranda
oranda-debug.log
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-dar
# Publish jobs to run in CI
pr-run-mode = "plan"

[[workspace.metadata.dist.extra-artifacts]]
artifacts = ["dist-manifest-schema.json"]
build = ["cargo", "run", "--", "dist", "manifest-schema", "--output=dist-manifest-schema.json"]

# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
Expand Down
5 changes: 5 additions & 0 deletions cargo-dist/tests/snapshots/manifest.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ stdout:
"artifacts": [
"source.tar.gz",
"source.tar.gz.sha256",
"dist-manifest-schema.json",
"cargo-dist-installer.sh",
"cargo-dist-installer.ps1",
"cargo-dist.rb",
Expand Down Expand Up @@ -285,6 +286,10 @@ stdout:
"install_hint": "brew install axodotdev/homebrew-tap/cargo-dist",
"description": "Install prebuilt binaries via Homebrew"
},
"dist-manifest-schema.json": {
"name": "dist-manifest-schema.json",
"kind": "extra-artifact"
},
"source.tar.gz": {
"name": "source.tar.gz",
"kind": "source-tarball",
Expand Down

0 comments on commit caf99ef

Please sign in to comment.