Skip to content

Commit cdb8a37

Browse files
committed
test
1 parent 3ef5171 commit cdb8a37

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/tests.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,25 @@ jobs:
6161
- name: Install e-dant/watcher
6262
uses: ./.github/actions/watcher
6363
- name: Set CGO flags
64-
run: echo "CGO_CFLAGS=-I${PWD}/watcher/target/include -I/usr/include" >> "${GITHUB_ENV}"
64+
run: echo "CGO_CFLAGS=-I${PWD}/watcher/target/include $(php-config --includes) -I/usr/include" >> "${GITHUB_ENV}"
65+
- name: Debug brotli + cgo
66+
run: |
67+
echo "==dpkg -L libbrotli-dev=="
68+
dpkg -L libbrotli-dev
69+
echo "==find brotli headers=="
70+
find /usr/include /usr/local/include -name "decode.h" -path "*brotli*" 2>/dev/null
71+
echo "==CC=="
72+
echo "CC=${CC:-<unset>}"
73+
which "${CC:-cc}" || true
74+
echo "==CGO_CFLAGS=="
75+
echo "${CGO_CFLAGS}"
76+
echo "==compiler default search paths=="
77+
echo | "${CC:-cc}" -E -Wp,-v -x c - 2>&1 | head -25
78+
echo "==try compiling brotli include with CGO_CFLAGS=="
79+
echo '#include <brotli/decode.h>' | "${CC:-cc}" ${CGO_CFLAGS} -E -x c - 2>&1 | tail -5
80+
echo "==pkg-config check=="
81+
pkg-config --cflags libbrotlidec libbrotlienc libbrotlicommon 2>&1
82+
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --cflags libbrotlidec libbrotlienc libbrotlicommon 2>&1
6583
- name: Build
6684
run: go build
6785
- name: Build testcli binary

0 commit comments

Comments
 (0)