Skip to content

Commit

Permalink
Being more specific with targets for the CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRustifyer committed Apr 11, 2023
1 parent 9021257 commit 86dc02e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
components: clippy
- run: cargo clippy --workspace --all-targets --verbose --all-features -- -A clippy::question_mark
- run: cargo clippy --workspace --all-targets --verbose --all-features
rustfmt:
name: Verify code formatting
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,4 +57,4 @@ jobs:
with:
rust-version: nightly

- run: cargo rustdoc -p ${{ matrix.crate }} --all-features -- -D warnings
- run: cargo rustdoc --target=x86_64-unknown-linux-gnu -p ${{ matrix.crate }} --all-features -- -D warnings
10 changes: 7 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ jobs:

- name: Load data for MSSQL tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo test initialize_sql_server_docker_instance -p tests --all-features --no-fail-fast -- --show-output --nocapture --include-ignored
run: cargo test initialize_sql_server_docker_instance -p tests --target=x86_64-unknown-linux-gnu --all-features --no-fail-fast -- --show-output --nocapture --include-ignored

- name: Run all tests, UNIT and INTEGRATION for Linux targets
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo test --verbose --workspace --all-features --no-fail-fast -- --show-output --test-threads=1

- name: Run only UNIT tests for the rest of the defined targets
if: ${{ matrix.os != 'ubuntu-latest' }}
- name: Run only UNIT tests for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: cargo test --verbose --workspace --target=x86_64-pc-windows-msvc --exclude tests --all-features --no-fail-fast -- --show-output-

- name: Run only UNIT tests for MacOS
if: ${{ matrix.os == 'MacOS-latest' }}
run: cargo test --verbose --workspace --exclude tests --all-features --no-fail-fast -- --show-output
3 changes: 0 additions & 3 deletions canyon_connection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ lazy_static = "1.4.0"
serde = { version = "1.0.138", features = ["derive"] }
toml = "0.7.3"

[target.'cfg(windows)'.dependencies.tiberius]
version = "0.12.1"
features = ["tds73", "chrono", "winauth"]

0 comments on commit 86dc02e

Please sign in to comment.