Commit f66ed26 1 parent b8bbcbe commit f66ed26 Copy full SHA for f66ed26
File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,25 @@ jobs:
67
67
test "$(pkg-config --cflags example_project)" = "-I/usr/local/include/example-project-0.1"
68
68
test "$(pkg-config --libs example_project)" = "-L/usr/local/lib -lexample-project"
69
69
70
- - name : Test pkgconf
70
+ - name : Install pkgconf
71
71
if : startsWith(matrix.os, 'ubuntu')
72
72
uses : awalsh128/cache-apt-pkgs-action@latest
73
73
with :
74
74
packages : pkgconf
75
+
76
+ - name : Test pkgconf
77
+ if : startsWith(matrix.os, 'ubuntu')
75
78
run : |
76
79
set -x
80
+ pkgconf --version
81
+ pkg-config --version
77
82
ARCHDIR=`dpkg-architecture -qDEB_HOST_MULTIARCH`
78
- test "$(pkgconf --cflags example_project)" = "-I/usr/local/include/example-project-0.1"
79
- test "$(pkgconf --libs example_project)" = "-L/usr/local/lib/${ARCHDIR} -lexample-project"
83
+ # ubuntu seems to add trailing spaces for no specific reasons.
84
+ CFLAGS=$(pkgconf --cflags example_project)
85
+ LIBS=$(pkgconf --libs example_project)
86
+
87
+ test "${CFLAGS%% }" = "-I/usr/local/include/example-project-0.1"
88
+ test "${LIBS%% }" = "-L/usr/local/lib/${ARCHDIR} -lexample-project"
80
89
81
90
- name : Update dynamic linker cache
82
91
if : startsWith(matrix.os, 'ubuntu')
You can’t perform that action at this time.
0 commit comments