diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6172f89a..cfa512043 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -111,7 +111,7 @@ jobs: - name: Compile env: HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }} - run: cross build --target ${{ matrix.arch }} --no-default-features --profile dist + run: cross build --target ${{ matrix.arch }} --no-default-features --features dashboard,highs --profile dist - name: Prepare archive id: archive diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5df042665..a2c3d7b63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,9 +108,9 @@ jobs: key: ${{ matrix.os }} - name: Build HyperQueue - run: cargo build --no-default-features + run: cargo build --no-default-features --features dashboard,highs - name: Run HyperQueue - run: cargo run --no-default-features -- --version + run: ./target/debug/hq --version - name: Setup Python uses: actions/setup-python@v2 diff --git a/crates/pyhq/Cargo.toml b/crates/pyhq/Cargo.toml index 0b2f86c31..e52cb7eec 100644 --- a/crates/pyhq/Cargo.toml +++ b/crates/pyhq/Cargo.toml @@ -17,7 +17,7 @@ name = "hyperqueue" crate-type = ["cdylib"] [dependencies] -hyperqueue = { path = "../hyperqueue" } +hyperqueue = { path = "../hyperqueue", default-features = false, features = ["jemalloc"] } tako = { path = "../tako" } serde = { workspace = true } @@ -31,6 +31,11 @@ pyo3-async-runtimes = { version = "0.25", features = ["tokio-runtime"] } pythonize = "0.25" termcolor = "1.1" +[features] +default = ["highs"] +highs = ["hyperqueue/highs"] +microlp = ["hyperqueue/microlp"] + [package.metadata.maturin] python-source = "python" diff --git a/crates/tako/Cargo.toml b/crates/tako/Cargo.toml index 4d1b5c7e8..1c618bb06 100644 --- a/crates/tako/Cargo.toml +++ b/crates/tako/Cargo.toml @@ -6,7 +6,7 @@ edition.workspace = true rust-version.workspace = true [features] -default = ["highs"] +default = [] highs = ["dep:highs"] microlp = ["dep:microlp"]