From 1a0b5f9427ee237ef17c59e13a600982b9b4a9d9 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 17 Aug 2023 00:27:26 +0200 Subject: [PATCH] chore: lock version, add CI --- .cargo-old/config | 2 ++ .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ Cargo.toml | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .cargo-old/config create mode 100644 .github/workflows/ci.yml diff --git a/.cargo-old/config b/.cargo-old/config new file mode 100644 index 0000000..c91c3f3 --- /dev/null +++ b/.cargo-old/config @@ -0,0 +1,2 @@ +[net] +git-fetch-with-cli = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1f1d11c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Cargo Build & Test + +on: + push: + branches: + - dev + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + # - beta + # - nightly + # disable other toolchains to save on github runners + steps: + #- uses: arduino/setup-protoc@v2 + - uses: actions/checkout@v3 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 59949b7..88d5b81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.2.0" edition = "2021" [dependencies] -codemp = { path = "../.." } +codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", tag = "v0.3" } tracing = "0.1" tracing-subscriber = "0.3" uuid = { version = "1.3.1", features = ["v4"] }