diff --git a/.github/workflows/example-project.yml b/.github/workflows/example-project.yml index 134124b4..2f58b9ec 100644 --- a/.github/workflows/example-project.yml +++ b/.github/workflows/example-project.yml @@ -61,12 +61,20 @@ jobs: sudo cp -r temp/usr/local/* /usr/local/ - name: Test pkg-config - if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') + if: startsWith(matrix.os, 'macos') run: | set -x test "$(pkg-config --cflags example_project)" = "-I/usr/local/include/example-project-0.1" test "$(pkg-config --libs example_project)" = "-L/usr/local/lib -lexample-project" + - name: Test pkg-config + if: startsWith(matrix.os, 'ubuntu') + run: | + set -x + ARCHDIR=`dpkg-architecture -qDEB_HOST_MULTIARCH` + test "$(pkg-config --cflags example_project)" = "-I/usr/local/include/example-project-0.1" + test "$(pkg-config --libs example_project)" = "-L/usr/local/lib/${ARCHDIR} -lexample-project" + - name: Update dynamic linker cache if: startsWith(matrix.os, 'ubuntu') run: |