diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f6e3147..93615b0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,6 +18,18 @@ jobs: components: rustfmt - uses: actions-rust-lang/rustfmt@v1 + check: + name: cargo check + runs-on: ubuntu-latest + permissions: + checks: write + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - run: cargo check + clippy: name: clippy runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 311b54b..b2381ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish releases +name: Publish edgee-cli crates on: release: types: [published] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2a784c..b771df9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: with: command: build target: ${{ matrix.platform.target }} - args: '-p edgee --bin edgee --release --features "${{ matrix.platform.features }}"' + args: '-p edgee-cli --bin edgee --release --features "${{ matrix.platform.features }}"' - name: Save binary uses: actions/upload-artifact@v4 diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 4c888f8..1512a97 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -51,9 +51,12 @@ uuid = { workspace = true, features = ["v4"] } wit-deps.workspace = true zip.workspace = true -api-client.workspace = true -proxy.workspace = true +api-client = { path = "../api-client" } +proxy = { path = "../proxy" } +[[bin]] +name = "edgee" +path = "src/main.rs" [features] bundled = ["openssl/vendored"]