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"