diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index 858df6ba..0fc58af9 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -13,7 +13,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/command-dispatch.yml b/.github/workflows/command-dispatch.yml index 25748db3..82adb968 100644 --- a/.github/workflows/command-dispatch.yml +++ b/.github/workflows/command-dispatch.yml @@ -6,7 +6,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 241be29a..fb371459 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -12,7 +12,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1456a194..b50fcd51 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index fbd5fe41..d83ddfd9 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -6,7 +6,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 111def6f..3aad675d 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -7,7 +7,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/prerequisites.yml b/.github/workflows/prerequisites.yml index 741fc286..1c94d84e 100644 --- a/.github/workflows/prerequisites.yml +++ b/.github/workflows/prerequisites.yml @@ -23,7 +23,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 80f3d70d..0b601232 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 438eaec3..6e98c505 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -6,7 +6,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cac38e13..7ade569c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml index 44bf35fd..03b62b9b 100644 --- a/.github/workflows/resync-build.yml +++ b/.github/workflows/resync-build.yml @@ -8,7 +8,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 793508da..31eb508f 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -17,7 +17,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index db489a33..58e9e462 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -39,7 +39,7 @@ env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} OS_AUTH_URL: https://auth.cloud.ovh.net/v3/ - OS_IDENTITY_API_VERSION: 3 + OS_IDENTITY_API_VERSION: "3" OS_PASSWORD: ${{ secrets.OS_PASSWORD }} OS_PROJECT_DOMAIN_NAME: Default OS_REGION_NAME: UK1 diff --git a/Makefile b/Makefile index 3d7c7e4f..9b821521 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,12 @@ PROVIDER_VERSION ?= 5.0.0-alpha.0+dev # Use this normalised version everywhere rather than the raw input to ensure consistency. VERSION_GENERIC = $(shell pulumictl convert-version --language generic --version "$(PROVIDER_VERSION)") +# Strips debug information from the provider binary to reduce its size and speed up builds +LDFLAGS_STRIP_SYMBOLS=-s -w LDFLAGS_PROJ_VERSION=-X $(PROJECT)/$(VERSION_PATH)=$(VERSION_GENERIC) LDFLAGS_UPSTREAM_VERSION= LDFLAGS_EXTRAS= -LDFLAGS=$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_UPSTREAM_VERSION) $(LDFLAGS_EXTRAS) +LDFLAGS=$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_UPSTREAM_VERSION) $(LDFLAGS_EXTRAS) $(LDFLAGS_STRIP_SYMBOLS) development: install_plugins provider build_sdks install_sdks