From 4b79b6dd1d005d85e045b852760810ab3b5ba28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Wed, 15 Jun 2022 20:38:55 +0200 Subject: [PATCH] just: Update targets for static builds --- Justfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Justfile b/Justfile index 670a285..6422c1d 100644 --- a/Justfile +++ b/Justfile @@ -1,6 +1,6 @@ set positional-arguments -target := "x86_64-unknown-linux-musl" +static_target := "x86_64-unknown-linux-musl" check: fmt-check lint test cargo check @@ -22,25 +22,28 @@ lint-fix: cargo clippy --no-deps --fix release: - cargo build --release --target {{target}} + cargo build --release + +release-static: + cargo build --release --target {{static_target}} --features=static-build test-binary: env \ GITHUB_API_BASEURL=http://rest:5000/github \ GITLAB_API_BASEURL=http://rest:5000/gitlab \ - cargo build --target {{target}} --profile e2e-tests --features=static-build + cargo build --target {{static_target}} --profile e2e-tests --features=static-build install: cargo install --path . install-static: - cargo install --target {{target}} --features=static-build --path . + cargo install --target {{static_target}} --features=static-build --path . build: cargo build build-static: - cargo build --target {{target}} --features=static-build + cargo build --target {{static_target}} --features=static-build test: test-unit test-integration test-e2e @@ -56,7 +59,7 @@ test-e2e +tests=".": test-binary && docker-compose build \ && docker-compose run \ --rm \ - -v $PWD/../target/{{target}}/e2e-tests/grm:/grm \ + -v $PWD/../target/{{static_target}}/e2e-tests/grm:/grm \ pytest \ "GRM_BINARY=/grm ALTERNATE_DOMAIN=alternate-rest python3 -m pytest -p no:cacheprovider --color=yes "$@"" \ && docker-compose rm --stop -f