Skip to content

Commit 7b3c02a

Browse files
committed
Update the test accordingly
1 parent 865082d commit 7b3c02a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/example-project.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,20 @@ jobs:
6161
sudo cp -r temp/usr/local/* /usr/local/
6262
6363
- name: Test pkg-config
64-
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
64+
if: startsWith(matrix.os, 'macos')
6565
run: |
6666
set -x
6767
test "$(pkg-config --cflags example_project)" = "-I/usr/local/include/example-project-0.1"
6868
test "$(pkg-config --libs example_project)" = "-L/usr/local/lib -lexample-project"
6969
70+
- name: Test pkg-config
71+
if: startsWith(matrix.os, 'ubuntu')
72+
run: |
73+
set -x
74+
ARCHDIR=`dpkg-architecture -qDEB_HOST_MULTIARCH`
75+
test "$(pkg-config --cflags example_project)" = "-I/usr/local/include/example-project-0.1"
76+
test "$(pkg-config --libs example_project)" = "-L/usr/local/lib/${ARCHDIR} -lexample-project"
77+
7078
- name: Update dynamic linker cache
7179
if: startsWith(matrix.os, 'ubuntu')
7280
run: |

0 commit comments

Comments
 (0)