Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Fix cargo publish beta #302

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
81acc6e
Update Cargo.toml
jio-gl Oct 18, 2023
7ead6f6
sbtc-core version and folder in Cargo.toml base
jio-gl Oct 18, 2023
32c6063
Merge branch 'fix-crate-publish2' of https://github.com/stacks-networ…
jio-gl Oct 18, 2023
e5064ff
publish sbtc-core module
jio-gl Oct 18, 2023
5456586
sbtc-core version in sbtc-core Cargo.toml
jio-gl Oct 18, 2023
a42582f
sbtc-core version in sbtc-core Cargo.toml
jio-gl Oct 18, 2023
fda9950
all version of sbtc-core deps
jio-gl Oct 18, 2023
c168e55
update yml
jio-gl Oct 18, 2023
07197ef
some changes
jio-gl Oct 18, 2023
874a426
only version, not include folder
jio-gl Oct 18, 2023
bf5436b
only version, not include folder
jio-gl Oct 18, 2023
3876dbd
no deps for publish, debug
jio-gl Oct 18, 2023
0669369
using workspace flag true to avoid duplications
jio-gl Oct 18, 2023
56672b5
move local deps to dev-deps
jio-gl Oct 18, 2023
981f6af
leave only path for workspace, are dev-deps
jio-gl Oct 18, 2023
fb53eb3
same for romeo
jio-gl Oct 18, 2023
83fe76e
no dev-deps in workspace
jio-gl Oct 18, 2023
96000d2
using main package sbtc-core
jio-gl Oct 18, 2023
4990a63
using only version number, no path nor dev-dep
jio-gl Oct 18, 2023
4282005
field ordering
jio-gl Oct 18, 2023
a23c7cd
suggestions from cargo check --workspace
jio-gl Oct 18, 2023
eb594b5
both path and version in workspace deps
jio-gl Oct 18, 2023
6e0ba6e
redundant version number in submodule
jio-gl Oct 18, 2023
aba27fd
only publish sbtc-core
jio-gl Oct 18, 2023
c9d4ac3
use my GH Action fork
jio-gl Oct 18, 2023
5ac2859
use my GH Action fork
jio-gl Oct 18, 2023
1e30a0c
use my GH Action fork
jio-gl Oct 18, 2023
cb009ed
use my GH Action fork
jio-gl Oct 18, 2023
ed27705
use v4 my own action
jio-gl Oct 18, 2023
30ecfc2
use v4 my own action
jio-gl Oct 18, 2023
d748ee1
use v4 my own action
jio-gl Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,29 @@ jobs:
run: cargo make --profile github-actions test

publish:
needs: intense-tests
#needs: intense-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}

- name: Publish
uses: katyo/publish-crates@v2

- uses: actions-rs/toolchain@v1
with:
args: "--verbose"
publish-delay: 1000 # Wait 1 second between publishing dependencies.
ignore-unpublished-changes: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
profile: minimal
toolchain: stable
override: true

- name: publish crates workspace
uses: jo-tm/publish-crates-workspace@v4
with:
#path: './sbtc-core'
args: "--no-verify"
#publish-delay: 1000 # Wait 1 second between publishing dependencies.
#ignore-unpublished-changes: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: true

devenv:
timeout-minutes: 120
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ reqwest = "0.11.20"
ring = "0.16.20"
ripemd = "0.1.3"
rs_merkle = "1.4.1"
sbtc-core = { path = "sbtc-core"}
secp256k1 = "0.27.0"
serde = "1.0"
serde_json = "1.0"
sha2 = "0.10.7"
stacks-core = { version = "0.1.0", path = "./stacks-core" }
stacks-core = "0.1.0"
strum = "0.25.0"
thiserror = "1.0.43"
tokio = "1.32.0"
Expand All @@ -35,3 +36,4 @@ tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
url = "2.4.1"
wsts = "1.2"

5 changes: 3 additions & 2 deletions romeo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ futures.workspace = true
hex.workspace = true
rand.workspace = true
reqwest = { workspace = true, features = ["json"] }
sbtc-core.path = "../sbtc-core"
sbtc-core.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
stacks-core.path = "../stacks-core"
stacks-core.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing-subscriber.workspace = true
tracing.workspace = true
url.workspace = true
rs_merkle.workspace = true

4 changes: 2 additions & 2 deletions sbtc-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ bdk = { workspace = true, features = ["keys-bip39", "rpc"] }
clap = { workspace = true, features = ["derive"] }
hex.workspace = true
regex.workspace = true
sbtc-core.path = "../sbtc-core"
sbtc-core.workspace = true
serde.workspace = true
serde_json.workspace = true
stacks-core.path = "../stacks-core"
stacks-core.workspace = true
url = { workspace = true, features = ["serde"] }

[[bin]]
Expand Down
29 changes: 15 additions & 14 deletions sbtc-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[package]
name = "sbtc-core"
version = "0.1.0"
edition = "2021"
authors = ["Stacks Foundation <[email protected]>"]
categories = [
"cryptography::cryptocurrencies",
Expand All @@ -7,27 +10,25 @@ categories = [
"finance",
]
description = "Package that exposes primitives for working with the Stacks sBTC token"
edition = "2021"
keywords = ["stacks", "bitcoin", "sbtc", "sdk", "blockchain"]
license = "MIT"
name = "sbtc-core"
readme = "README.md"
repository = "https://github.com/stacks-network/sbtc"
version = "0.1.0"
homepage = "https://www.stacks.co"

[dependencies]
bdk.workspace = true
hex.workspace = true
log.workspace = true
once_cell.workspace = true
p256k1.workspace = true
regex.workspace = true
stacks-core.path = "../stacks-core"
strum = { workspace = true, features = ["derive"] }
thiserror.workspace = true
url.workspace = true
wsts.workspace = true
bdk = "0.28.1"
hex = "0.4.3"
log = "0.4.19"
once_cell = "1.18.0"
p256k1 = "5.1"
regex = "~1.8.4"
stacks-core.workspace = true
strum = "0.25.0"
thiserror = "1.0.43"
url = "2.4.1"
wsts = "1.2"

[dev-dependencies]
rand = { workspace = true, features = ["std_rng"] }

Loading