Skip to content

Commit

Permalink
try cgo flags anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Dec 14, 2023
1 parent 4ffb8c4 commit 11da3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 11da3be

Please sign in to comment.