Skip to content

Commit

Permalink
try CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lur1an committed May 8, 2024
1 parent 8fe6a47 commit f29cfd7
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish
on:
push:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

- name: Publish edgedb-tokio-ext-derive crate
working-directory: ./edgedb-tokio-ext-derive
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}

- name: Publish edgedb-tokio-ext crate
working-directory: ./edgedb-tokio-ext
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml → .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on:
push:
branches: [ "develop", "master" ]
branches: [ "develop" ]
pull_request:
branches: [ "master", "develop" ]

Expand Down
15 changes: 14 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added README.md
Empty file.
7 changes: 6 additions & 1 deletion ext-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "edgedb-tokio-ext-derive"
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["lur1an <[email protected]>"]
description = "Derive macros for edgedb-tokio-ext"
readme = "../README.md"
repository = "https://github.com/lur1an/edgedb-tokio-ext"

[lib]
proc-macro = true
Expand All @@ -13,7 +18,7 @@ lazy_static = "1.4.0"
proc-macro2 = "1.0.81"
quote = "1.0.36"
regex = "1.10.4"
syn = "2.0.60"
syn = { version = "2.0.60", features = ["full"] }

[dev-dependencies]
syn = { version = "2.0.60", features = ["extra-traits"]}
7 changes: 6 additions & 1 deletion ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "edgedb-tokio-ext"
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["lur1an <[email protected]>"]
description = "Derive macros for edgedb-tokio-ext"
readme = "../README.md"
repository = "https://github.com/lur1an/edgedb-tokio-ext"

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

Expand All @@ -13,7 +18,7 @@ edgedb-protocol = "0.6.0"
edgedb-tokio = "0.5.0"
serde = "1.0.199"
serde_json = "1.0.116"
edgedb-tokio-ext-derive = { path = "../ext-derive" }
edgedb-tokio-ext-derive = { version = "0.1.0" }
const_format = "0.2.32"

[dev-dependencies]
Expand Down

0 comments on commit f29cfd7

Please sign in to comment.