Skip to content

Commit

Permalink
ci: simplify many of the matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Sep 6, 2024
1 parent 78a9176 commit cb97f70
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 18 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
args:
- ""
- "-F geo"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check w/ geo
run: cargo check
- name: Test
run: cargo test ${{ matrix.args }}
run: cargo test --all-features
7 changes: 7 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ jobs:
sudo apt-get install libgdal-dev
- name: Test
run: cargo test ${{ matrix.args }}
test-cli-with-duckdb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --no-default-features -F duckdb -F duckdb/bundled
21 changes: 13 additions & 8 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,25 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
args:
- ""
- "-F geo"
- "-F geoarrow"
- "-F geoparquet"
- "-F geoparquet-compression"
- "-F reqwest"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check w/ geo
run: cargo check -F geo
- name: Check w/ geoarrow
run: cargo check -F geoarrow
- name: Check w/ geoparquet
run: cargo check -F geoparquet
- name: Check w/ geoparquet-compression
run: cargo check -F geoparquet-compression
- name: Check w/ reqwest
run: cargo check -F reqwest
- name: Test
run: cargo test ${{ matrix.args }}
run: cargo test -F geo -F geoarrow -F geoparquet -F geoparquet-compression -F reqwest
test-core-with-gdal:
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
args:
- ""
- "-F axum"
- "-F pgstac"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check
run: cargo check -F axum
- name: Check
run: cargo check -F pgstac
- name: Test
run: cargo test ${{ matrix.args }}
run: cargo test -F axum -F pgstac
3 changes: 2 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rust-version = "1.75"

[features]
default = ["gdal", "geoparquet", "pgstac"]
duckdb = ["dep:stac-duckdb"]
duckdb = ["dep:stac-duckdb", "dep:duckdb"]
gdal = ["stac/gdal"]
geoparquet = [
"dep:bytes",
Expand All @@ -28,6 +28,7 @@ python = ["dep:pyo3", "pgstac", "geoparquet"]
axum = "0.7"
bytes = { version = "1", optional = true }
clap = { version = "4", features = ["derive"] }
duckdb = { version = "1", optional = true } # We have this dependency only to allow us to bundle it
geoarrow = { version = "0.3.0-beta.3", optional = true }
parquet = { version = "52", optional = true }
pyo3 = { version = "0.22", optional = true }
Expand Down
2 changes: 2 additions & 0 deletions cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pub use {args::Args, error::Error, format::Format, value::Value};
/// Crate-specific result type.
pub type Result<T> = std::result::Result<T, Error>;

#[cfg(feature = "duckdb")]
use duckdb as _;
use tracing_subscriber as _;

#[cfg(test)]
Expand Down

0 comments on commit cb97f70

Please sign in to comment.