From d9ac5d83de6df364e750551b5816ec5a1f392df4 Mon Sep 17 00:00:00 2001 From: Billy Chan <30400950+billy1624@users.noreply.github.com> Date: Sat, 14 Aug 2021 18:43:47 +0800 Subject: [PATCH] Fix compile errors on different runtime (#84) * Fix compile errors on different runtime * Split sea-orm-cli into separate workspace * Hotfix --- .github/workflows/rust.yml | 26 ++++++++++++++++++++++++-- Cargo.toml | 1 - sea-orm-cli/Cargo.toml | 3 +++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 11315fc3..e0f4e3e0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,8 @@ jobs: command: build args: > --all - --features default + --exclude 'sea-orm-example-*' + --features default,runtime-${{ matrix.runtime }} - uses: actions-rs/cargo@v1 with: @@ -38,7 +39,28 @@ jobs: args: > --all --exclude 'sea-orm-example-*' - --features default + --features default,runtime-${{ matrix.runtime }} + + cli: + name: CLI + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - uses: actions-rs/cargo@v1 + with: + command: install + args: > + --path sea-orm-cli sqlite: name: SQLite diff --git a/Cargo.toml b/Cargo.toml index 8e932848..4ce90956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,6 @@ members = [ ".", "sea-orm-macros", "sea-orm-codegen", - "sea-orm-cli", "examples/sqlx", ] diff --git a/sea-orm-cli/Cargo.toml b/sea-orm-cli/Cargo.toml index 7af5b2ad..a288f7a2 100644 --- a/sea-orm-cli/Cargo.toml +++ b/sea-orm-cli/Cargo.toml @@ -1,3 +1,6 @@ +[workspace] +# A separate workspace for sea-orm-cli + [package] name = "sea-orm-cli" version = "0.1.2"