Skip to content

Commit

Permalink
test: cargo-dist (#131)
Browse files Browse the repository at this point in the history
### Description

Experimenting with `dist` to automagically publish releases with tags.
  • Loading branch information
refcell authored Jan 23, 2025
1 parent 7b67963 commit 7d4908c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@ rstest = "0.24.0"
## crypto
c-kzg = { version = "1.0", default-features = false }
k256 = { version = "0.13.4", default-features = false, features = ["ecdsa"] }

# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
19 changes: 19 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[workspace]
members = ["cargo:."]

# Config for 'dist'
[dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.28.0"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Publish jobs to run in CI
publish-jobs = []
# Whether to install an updater program
install-updater = false

0 comments on commit 7d4908c

Please sign in to comment.