Skip to content

Commit ad73094

Browse files
committed
try some workarounds
1 parent 95980b3 commit ad73094

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
run: |
198198
docker run --platform=${{ matrix.platform }} --rm \
199199
"$(jq -r '."builder-${{ matrix.variant }}"."containerimage.config.digest"' <<< "${METADATA}")" \
200-
sh -c 'CGO_CFLAGS="-D_GNU_SOURCE" go test -tags ${{ matrix.race }} -v ./... && cd caddy && go test -tags nobadger,nomysql,nopgx ${{ matrix.race }} -v ./...'
200+
sh -c 'CGO_CFLAGS="${CGO_CFLAGS}" go test -tags ${{ matrix.race }} -v ./... && cd caddy && go test -tags nobadger,nomysql,nopgx ${{ matrix.race }} -v ./...'
201201
env:
202202
METADATA: ${{ steps.build.outputs.metadata }}
203203
# Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
working-directory: internal/testcli/
5555
run: go build
5656
- name: Run library tests
57-
run: CGO_CFLAGS="-D_GNU_SOURCE" go test -race -v ./...
57+
run: CGO_CFLAGS="${CGO_CFLAGS}" go test -race -v ./...
5858
- name: Run Caddy module tests
5959
working-directory: caddy/
6060
run: go test -tags nobadger,nomysql,nopgx -race -v ./...

0 commit comments

Comments
 (0)