Skip to content

Commit 5f9c77f

Browse files
committed
fix "Set Set CGO flags"
1 parent 44519f5 commit 5f9c77f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/sanitizers.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ jobs:
102102
run: echo "$(pwd)/php/target/bin" >> "$GITHUB_PATH"
103103
- name: Install e-dant/watcher
104104
uses: ./.github/actions/watcher
105-
- name: Set Set CGO flags
105+
- name: Install gotestsum
106+
run: go install gotest.tools/gotestsum@latest
107+
- name: Set CGO flags
106108
run: |
107109
{
108110
echo "CGO_CFLAGS=$CFLAGS -I${PWD}/watcher/target/include $(php-config --includes)"
109111
echo "CGO_LDFLAGS=$LDFLAGS $(php-config --ldflags) $(php-config --libs)"
110112
} >> "$GITHUB_ENV"
111-
- name: Install gotestsum
112-
run: go install gotest.tools/gotestsum@latest
113113
- name: Run tests
114114
run: gotestsum -- ${{ matrix.sanitizer == 'msan' && '-tags=nowatcher' || '' }} -${{ matrix.sanitizer }} ./...

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ jobs:
166166
env:
167167
phpts: ts
168168
debug: true
169-
- name: Set Set CGO flags
169+
- name: Install gotestsum
170+
run: go install gotest.tools/gotestsum@latest
171+
- name: Set CGO flags
170172
run: |
171173
{
172174
echo "CGO_CFLAGS=-I/opt/homebrew/include/ $(php-config --includes)"
173175
echo "CGO_LDFLAGS=-L/opt/homebrew/lib/ $(php-config --ldflags) $(php-config --libs)"
174176
} >> "${GITHUB_ENV}"
175177
- name: Build
176178
run: go build -tags nowatcher
177-
- name: Install gotestsum
178-
run: go install gotest.tools/gotestsum@latest
179179
- name: Run library tests
180180
run: gotestsum -- -tags nowatcher -race ./...
181181
- name: Run Caddy module tests

0 commit comments

Comments
 (0)