update CI & Dockerfile

This commit is contained in:
Marin Postma 2021-04-22 11:22:09 +02:00
parent 6af769af20
commit 90f57c1329
No known key found for this signature in database
GPG Key ID: D5241F0C0C865F30
3 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@ jobs:
rust-version: stable rust-version: stable
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Build - name: Build
run: cargo build --release --locked run: cargo build --release --locked --features mini-dashboard
- name: Upload binaries to release - name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release uses: svenstaro/upload-release-action@v1-release
with: with:

View File

@ -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 # 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;' 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 # 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 # Cleanup dummy main.rs files
RUN find . -path "*/src/main.rs" -delete RUN find . -path "*/src/main.rs" -delete
@ -29,7 +29,7 @@ ARG COMMIT_DATE
ENV COMMIT_SHA=${COMMIT_SHA} COMMIT_DATE=${COMMIT_DATE} ENV COMMIT_SHA=${COMMIT_SHA} COMMIT_DATE=${COMMIT_DATE}
COPY . . COPY . .
RUN $HOME/.cargo/bin/cargo build --release RUN $HOME/.cargo/bin/cargo build --release --features mini-dashboard
# Run # Run
FROM alpine:3.10 FROM alpine:3.10

View File

@ -5,7 +5,6 @@ edition = "2018"
license = "MIT" license = "MIT"
name = "meilisearch-http" name = "meilisearch-http"
version = "0.21.0-alpha.3" version = "0.21.0-alpha.3"
build = "build.rs"
[[bin]] [[bin]]
name = "meilisearch" name = "meilisearch"