try cgo flags anyway

This commit is contained in:
Robert Landers 2023-12-14 20:13:31 +01:00
parent 4ffb8c4793
commit 11da3be7e5
No known key found for this signature in database
GPG Key ID: 84EBED82B53E9140

View File

@ -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/