remove patch
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Robert Kaussow 2020-06-04 01:38:06 +02:00
parent 25b5f519c3
commit fb43bc9e2f

View File

@ -2,7 +2,6 @@ export BUILD_VERSION ?= 1.15.0
export DEBIAN_FRONTEND ?= noninteractive export DEBIAN_FRONTEND ?= noninteractive
export LANG ?= C.UTF-8 export LANG ?= C.UTF-8
export TZ ?= UTC export TZ ?= UTC
export RUSTFLAGS ?= -C link-arg=-s
DB ?= postgresql DB ?= postgresql
SRC := src SRC := src
@ -20,9 +19,8 @@ build-src:
.PHONY: build-bin .PHONY: build-bin
build-bin: build-bin:
rustup set profile minimal && \ rustup set profile minimal && \
cp patch/main.rs src/src/ && \
cd $(SRC) && \ cd $(SRC) && \
rustup target add x86_64-unknown-linux-musl && \ RUSTFLAGS="-C link-arg=-s" rustup target add x86_64-unknown-linux-musl && \
BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release
.PHONY: clean .PHONY: clean