diff --git a/.github/workflows/create_artifacts.yml b/.github/workflows/create_artifacts.yml index 94378ba83..06b116c28 100644 --- a/.github/workflows/create_artifacts.yml +++ b/.github/workflows/create_artifacts.yml @@ -28,7 +28,7 @@ jobs: rust-version: stable - uses: actions/checkout@v1 - name: Build - run: cargo build --release --locked + run: cargo build --release --locked --features mini-dashboard - name: Upload binaries to release uses: svenstaro/upload-release-action@v1-release with: diff --git a/Dockerfile b/Dockerfile index 8c2648512..4f52c61d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ ENV RUSTFLAGS="-C target-feature=-crt-static" # Create dummy main.rs files for each workspace member to be able to compile all the dependencies RUN find . -type d -name "meilisearch-*" | xargs -I{} sh -c 'mkdir {}/src; echo "fn main() { }" > {}/src/main.rs;' # Use `cargo build` instead of `cargo vendor` because we need to not only download but compile dependencies too -RUN $HOME/.cargo/bin/cargo build --release +RUN $HOME/.cargo/bin/cargo build --release --features mini-dashboard # Cleanup dummy main.rs files RUN find . -path "*/src/main.rs" -delete @@ -29,7 +29,7 @@ ARG COMMIT_DATE ENV COMMIT_SHA=${COMMIT_SHA} COMMIT_DATE=${COMMIT_DATE} COPY . . -RUN $HOME/.cargo/bin/cargo build --release +RUN $HOME/.cargo/bin/cargo build --release --features mini-dashboard # Run FROM alpine:3.10 diff --git a/meilisearch-http/Cargo.toml b/meilisearch-http/Cargo.toml index 369f93376..741c2eebe 100644 --- a/meilisearch-http/Cargo.toml +++ b/meilisearch-http/Cargo.toml @@ -5,7 +5,6 @@ edition = "2018" license = "MIT" name = "meilisearch-http" version = "0.21.0-alpha.3" -build = "build.rs" [[bin]] name = "meilisearch"