From 11da3be7e51b6f0b4f003a05170e7d982cbe8364 Mon Sep 17 00:00:00 2001 From: Robert Landers Date: Thu, 14 Dec 2023 20:13:31 +0100 Subject: [PATCH] try cgo flags anyway --- .github/workflows/docker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index f85c2c0..dc59ed4 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -181,7 +181,7 @@ jobs: run: | docker run --platform=${{ matrix.platform }} --rm \ "$(jq -r '."builder-${{ matrix.variant }}"."containerimage.config.digest"' <<< "${METADATA}")" \ - sh -c ' go test -buildmode=pie -v ./... && cd caddy && go test -buildmode=pie -v ./...' + sh -c 'CGO_CXXFLAGS=-fPIE CGO_CFLAGS=-fPIE CGO_LDFLAGS=-pie go test -buildmode=pie -v ./... && cd caddy && go test -buildmode=pie -v ./...' env: METADATA: ${{ steps.build.outputs.metadata }} # Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/