mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 03:55:07 +08:00
update CI & Dockerfile
This commit is contained in:
parent
6af769af20
commit
90f57c1329
2
.github/workflows/create_artifacts.yml
vendored
2
.github/workflows/create_artifacts.yml
vendored
@ -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:
|
||||
|
@ -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
|
||||
|
@ -5,7 +5,6 @@ edition = "2018"
|
||||
license = "MIT"
|
||||
name = "meilisearch-http"
|
||||
version = "0.21.0-alpha.3"
|
||||
build = "build.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "meilisearch"
|
||||
|
Loading…
Reference in New Issue
Block a user