diff --git a/.github/workflows/integration-tests-non-root.yaml b/.github/workflows/integration-tests-non-root.yaml index ea3ec3c38a05c..02f50779dd82f 100644 --- a/.github/workflows/integration-tests-non-root.yaml +++ b/.github/workflows/integration-tests-non-root.yaml @@ -71,4 +71,4 @@ jobs: - name: Run tests timeout-minutes: 40 - run: runuser -u ci -g ci make rdpclient integration + run: runuser -u ci -g ci make integration RDPCLIENT_SKIP_BUILD=1 diff --git a/.github/workflows/integration-tests-root.yaml b/.github/workflows/integration-tests-root.yaml index 9a0a8f5e93e72..9c68720ac4778 100644 --- a/.github/workflows/integration-tests-root.yaml +++ b/.github/workflows/integration-tests-root.yaml @@ -48,4 +48,4 @@ jobs: - name: Run tests timeout-minutes: 40 run: | - make rdpclient integration-root + make integration-root RDPCLIENT_SKIP_BUILD=1 diff --git a/Makefile b/Makefile index 49c0647dbc2bf..141638b54b98d 100644 --- a/Makefile +++ b/Makefile @@ -88,9 +88,6 @@ CHECK_RUST := $(shell rustc --version 2>/dev/null) # TODO: Delete when it becomes default in Rust 1.70.0 export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse -with_rdpclient := no -RDPCLIENT_MESSAGE := without-Windows-RDP-client - CARGO_TARGET_darwin_amd64 := x86_64-apple-darwin CARGO_TARGET_darwin_arm64 := aarch64-apple-darwin CARGO_TARGET_linux_arm64 := aarch64-unknown-linux-gnu @@ -98,6 +95,14 @@ CARGO_TARGET_linux_amd64 := x86_64-unknown-linux-gnu CARGO_TARGET := --target=${CARGO_TARGET_${OS}_${ARCH}} +# If set to 1, Windows RDP client is not built. +RDPCLIENT_SKIP_BUILD ?= 0 + +# Enable Windows RDP client build? +with_rdpclient := no +RDPCLIENT_MESSAGE := without-Windows-RDP-client + +ifeq ($(RDPCLIENT_SKIP_BUILD),0) ifneq ($(CHECK_RUST),) ifneq ($(CHECK_CARGO),) @@ -110,6 +115,7 @@ RDPCLIENT_TAG := desktop_access_rdp endif endif +endif endif endif