Skip to content

Commit

Permalink
ref: Add release workflow for Rust (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker authored Jan 17, 2024
1 parent 36eaee3 commit 7f2eed8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ changelogPolicy: auto
targets:
- name: github
- name: pypi
- name: crates
- name: sentry-pypi
internalPypiRepo: getsentry/pypi
6 changes: 3 additions & 3 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout code
- name: Run linter
run: cd rust-arroyo && cargo check && cargo fmt --check
- run: cargo check
- run: cargo fmt --check

test:
name: "Tests"
Expand All @@ -29,4 +29,4 @@ jobs:
- name: Run Zookeeper and Kafka
run: sh scripts/run-kafka.sh
- name: Run tests
run: cd rust-arroyo && cargo test
run: cargo test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
.DS_Store
.tox
.benchmarks/
.idea/
.idea/
target/
/Cargo.lock
17 changes: 16 additions & 1 deletion rust-arroyo/Cargo.toml → Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[package]
name = "rust_arroyo"
version = "0.1.0"
version = "2.15.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
path = "rust-arroyo/src/lib.rs"

[dependencies]
chrono = "0.4.26"
coarsetime = "0.1.33"
Expand All @@ -25,3 +28,15 @@ tracing-subscriber = "0.3.18"

[patch.crates-io]
rdkafka = { git = "https://github.com/fede1024/rust-rdkafka" }

[[example]]
name = "base_processor"
path = "rust-arroyo/examples/base_processor.rs"

[[example]]
name = "transform_and_produce"
path = "rust-arroyo/examples/transform_and_produce.rs"

[[example]]
name = "base_consumer"
path = "rust-arroyo/examples/base_consumer.rs"
1 change: 1 addition & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ function replace() {
}

replace "version=\"[0-9.]+\"" "version=\"$NEW_VERSION\"" ./setup.py
replace "^version = \".*?\"" "version = \"$NEW_VERSION\"" Cargo.toml

0 comments on commit 7f2eed8

Please sign in to comment.