mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +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
|
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:
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user