Skip to content

Commit

Permalink
Update the test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed May 29, 2024
1 parent 886842d commit 2fc89b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/example-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 2fc89b3

Please sign in to comment.