Skip to content

Commit 6322041

Browse files
authored
Crate release workflows (#25)
* add workflows * update tomls * bump versions to match current release * use workspace components * change sintax
1 parent ed518f7 commit 6322041

File tree

6 files changed

+57
-8
lines changed

6 files changed

+57
-8
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
workflow_dispatch:
3+
4+
jobs:
5+
crates-publish:
6+
runs-on: ubuntu-latest
7+
environment: crates-release-prod
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
11+
12+
- name: Set Up Rust Toolchain
13+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 #1.10.1
14+
with:
15+
toolchain: stable
16+
override: true
17+
18+
- name: Publish Crate
19+
run: cargo publish --package spawned-concurrency --token ${{ secrets.CRATES_IO_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
workflow_dispatch:
3+
4+
jobs:
5+
crates-publish:
6+
runs-on: ubuntu-latest
7+
environment: crates-release-prod
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
11+
12+
- name: Set Up Rust Toolchain
13+
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 #1.10.1
14+
with:
15+
toolchain: stable
16+
override: true
17+
18+
- name: Publish Crate
19+
run: cargo publish --package spawned-rt --token ${{ secrets.CRATES_IO_TOKEN }}

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[workspace]
22
resolver = "3"
3+
34
members = [
45
"rt",
6+
"concurrency",
57
"examples/bank",
68
"examples/bank_threads",
79
"examples/name_server",
@@ -14,7 +16,12 @@ members = [
1416
]
1517

1618
[workspace.dependencies]
17-
spawned-rt = { version = "0.1.0", path = "rt" }
18-
spawned-concurrency = { version = "0.1.0", path = "concurrency" }
19+
spawned-rt = { path = "rt" }
20+
spawned-concurrency = { path = "concurrency" }
1921
tracing = { version = "0.1.41", features = ["log"] }
2022
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
23+
24+
[workspace.package]
25+
version = "0.1.3"
26+
license = "MIT"
27+
edition = "2021"

concurrency/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
22
name = "spawned-concurrency"
3-
version = "0.1.0"
4-
edition = "2021"
3+
description = "Spawned Concurrency"
4+
version.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
57

68
[dependencies]
79
spawned-rt = { workspace = true }

rt/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
22
name = "spawned-rt"
3-
version = "0.1.0"
4-
edition = "2021"
3+
description = "Spawned Runtime"
4+
version.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
57

68
[dependencies]
79
tokio = { version = "1", features = ["full"] }

0 commit comments

Comments
 (0)