From 6e37b7206ea5aa5f2cd3e8f71722411be709faa4 Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Thu, 10 Apr 2025 23:13:44 +0200 Subject: [PATCH] fix build gcp (#5601) * fix build gcp * f --- .github/workflows/docker-image.yml | 2 +- backend/windmill-api/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 23d59ff604..4b5b19c74a 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -95,7 +95,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true build-args: | - features=embedding,parquet,openidconnect,jemalloc,license,http_trigger,zip,oauth2,dind,postgres_trigger,mqtt_trigger,gcp_trigger,websocket,smtp,static_frontend,agent_worker_server,all_languages + features=embedding,parquet,openidconnect,jemalloc,license,http_trigger,zip,oauth2,dind,postgres_trigger,mqtt_trigger,websocket,smtp,static_frontend,agent_worker_server,all_languages tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEV_SHA }} ${{ steps.meta-public.outputs.tags }} diff --git a/backend/windmill-api/src/lib.rs b/backend/windmill-api/src/lib.rs index 75e67e9abe..922cb57ceb 100644 --- a/backend/windmill-api/src/lib.rs +++ b/backend/windmill-api/src/lib.rs @@ -663,11 +663,11 @@ pub async fn run_server( .nest( "/gcp/w/:workspace_id", { - #[cfg(feature = "gcp_trigger")] + #[cfg(all(feature = "enterprise", feature = "gcp_trigger"))] { gcp_triggers_ee::gcp_push_route_handler() } - #[cfg(not(feature = "gcp_trigger"))] + #[cfg(not(all(feature = "enterprise", feature = "gcp_trigger")))] { Router::new() }