Skip to content

Commit

Permalink
Unbreak the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Jun 30, 2024
1 parent b8bbcbe commit f66ed26
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/example-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,25 @@ jobs:
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 pkgconf
- name: Install pkgconf
if: startsWith(matrix.os, 'ubuntu')
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: pkgconf

- name: Test pkgconf
if: startsWith(matrix.os, 'ubuntu')
run: |
set -x
pkgconf --version
pkg-config --version
ARCHDIR=`dpkg-architecture -qDEB_HOST_MULTIARCH`
test "$(pkgconf --cflags example_project)" = "-I/usr/local/include/example-project-0.1"
test "$(pkgconf --libs example_project)" = "-L/usr/local/lib/${ARCHDIR} -lexample-project"
# ubuntu seems to add trailing spaces for no specific reasons.
CFLAGS=$(pkgconf --cflags example_project)
LIBS=$(pkgconf --libs example_project)
test "${CFLAGS%% }" = "-I/usr/local/include/example-project-0.1"
test "${LIBS%% }" = "-L/usr/local/lib/${ARCHDIR} -lexample-project"
- name: Update dynamic linker cache
if: startsWith(matrix.os, 'ubuntu')
Expand Down

0 comments on commit f66ed26

Please sign in to comment.