From f29cfd7846390530494ebfd376e2c6833a54c1a5 Mon Sep 17 00:00:00 2001 From: lur1an Date: Wed, 8 May 2024 18:58:12 +0200 Subject: [PATCH] try CI --- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++++ .github/workflows/{ci.yaml => rust.yaml} | 2 +- Cargo.lock | 15 ++++++++++++- README.md | 0 ext-derive/Cargo.toml | 7 +++++- ext/Cargo.toml | 7 +++++- 6 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish.yaml rename .github/workflows/{ci.yaml => rust.yaml} (97%) create mode 100644 README.md diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..1595ab9 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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 }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/rust.yaml similarity index 97% rename from .github/workflows/ci.yaml rename to .github/workflows/rust.yaml index ccee87f..bcc4fde 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/rust.yaml @@ -1,7 +1,7 @@ name: CI on: push: - branches: [ "develop", "master" ] + branches: [ "develop" ] pull_request: branches: [ "master", "develop" ] diff --git a/Cargo.lock b/Cargo.lock index e5d0635..febfcf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ "edgedb-errors", "edgedb-protocol", "edgedb-tokio", - "edgedb-tokio-ext-derive", + "edgedb-tokio-ext-derive 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde", "serde_json", "tokio", @@ -340,6 +340,19 @@ dependencies = [ "syn 2.0.60", ] +[[package]] +name = "edgedb-tokio-ext-derive" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c202d75607f4e1caa6e2eacefc0d3fbf4d210fa3f91ef1f3ad3de29906eb58e9" +dependencies = [ + "lazy_static", + "proc-macro2", + "quote", + "regex", + "syn 2.0.60", +] + [[package]] name = "env_logger" version = "0.5.13" diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/ext-derive/Cargo.toml b/ext-derive/Cargo.toml index d30dd66..bb4a0d8 100644 --- a/ext-derive/Cargo.toml +++ b/ext-derive/Cargo.toml @@ -2,6 +2,11 @@ name = "edgedb-tokio-ext-derive" version = "0.1.0" edition = "2021" +license = "MIT" +authors = ["lur1an "] +description = "Derive macros for edgedb-tokio-ext" +readme = "../README.md" +repository = "https://github.com/lur1an/edgedb-tokio-ext" [lib] proc-macro = true @@ -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"]} diff --git a/ext/Cargo.toml b/ext/Cargo.toml index 07832be..70607db 100644 --- a/ext/Cargo.toml +++ b/ext/Cargo.toml @@ -2,6 +2,11 @@ name = "edgedb-tokio-ext" version = "0.1.0" edition = "2021" +license = "MIT" +authors = ["lur1an "] +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 @@ -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]