From c88ce6059f6758a883b1998db305bd04d348f4b9 Mon Sep 17 00:00:00 2001 From: geoHeil Date: Mon, 8 Aug 2022 07:24:12 +0200 Subject: [PATCH] enable database feature in release build (#182) --- .github/workflows/roapi_release.yml | 12 ++++++------ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/roapi_release.yml b/.github/workflows/roapi_release.yml index ccd05ee..25db550 100644 --- a/.github/workflows/roapi_release.yml +++ b/.github/workflows/roapi_release.yml @@ -53,7 +53,7 @@ jobs: run: pip3 install 'maturin<0.12' - name: Build wheels - x86_64 run: | - maturin build -m roapi/Cargo.toml -b bin --target x86_64-apple-darwin --release --out dist --cargo-extra-args="--features=simd" + maturin build -m roapi/Cargo.toml -b bin --target x86_64-apple-darwin --release --out dist --cargo-extra-args="--features=simd,database" pip install roapi --no-index --find-links dist --force-reinstall - name: Build wheels - universal2 env: @@ -62,7 +62,7 @@ jobs: run: | # set SDKROOT for C dependencies export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) - maturin build -m roapi/Cargo.toml -b bin --release --universal2 --out dist --no-sdist --cargo-extra-args="--features=simd" + maturin build -m roapi/Cargo.toml -b bin --release --universal2 --out dist --no-sdist --cargo-extra-args="--features=simd,database" pip install roapi --no-index --find-links dist --force-reinstall - name: Upload wheels uses: actions/upload-artifact@v2 @@ -88,7 +88,7 @@ jobs: strategy: matrix: platform: [ - { python-architecture: "x64", target: "x86_64-pc-windows-msvc", features: "simd" }, + { python-architecture: "x64", target: "x86_64-pc-windows-msvc", features: "simd,database" }, # { python-architecture: "x86", target: "i686-pc-windows-msvc", features: "" }, ] steps: @@ -140,7 +140,7 @@ jobs: - manylinux: "2010" target: "x86_64-unknown-linux-musl" image_tag: "x86_64-musl" - features: "simd,rustls" + features: "simd,rustls,database" name_suffix: "" upload: "true" # - manylinux: "2010" @@ -152,7 +152,7 @@ jobs: - manylinux: '2014' target: "aarch64-unknown-linux-musl" image_tag: "aarch64-musl" - features: "rustls" + features: "rustls,database" name_suffix: "" upload: "true" # - manylinux: '2014' @@ -164,7 +164,7 @@ jobs: - manylinux: '2014' target: "armv7-unknown-linux-musleabihf" image_tag: "armv7-musleabihf" - features: "rustls" + features: "rustls,database" name_suffix: "" upload: "true" # - manylinux: '2014' diff --git a/Dockerfile b/Dockerfile index ccbd0f3..56715f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apt-get update \ && apt-get install --no-install-recommends -y cmake RUN RUSTFLAGS='-C target-cpu=skylake' \ - cargo install --locked --features simd --path ./roapi --bin roapi + cargo +nightly install --locked --git https://github.com/roapi/roapi --branch main --bins roapi --features "simd database" FROM debian:bullseye-slim LABEL org.opencontainers.image.source https://github.com/roapi/roapi