Skip to content

Commit

Permalink
Merge pull request #1688 from EliahKagan/run-ci/impure-next
Browse files Browse the repository at this point in the history
Check for unrecognized `*-sys` dependencies
  • Loading branch information
Byron authored Nov 18, 2024
2 parents aeaebec + a1414c8 commit b06f729
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Verify that we are in an environment with limited dev tools
run: |
set -x
for pattern in cmake g++ libssl-dev make pkgconf pkg-config; do
if dpkg-query --status -- "$pattern"; then
for package in cmake g++ libssl-dev make pkgconf pkg-config; do
if dpkg-query --status -- "$package"; then
exit 1
fi
done
Expand All @@ -64,6 +64,9 @@ jobs:
pattern='.*\b(-sys|cc|cmake|pkg-config|vcpkg)\b.*'
! GREP_COLORS='ms=30;48;5;214' grep --color=always -Ex -C 1000000 -e "$pattern" tree.txt
continue-on-error: true
- name: Check for unrecognized *-sys dependencies
run: |
! grep -qP '(?<!\blinux-raw)-sys\b' tree.txt
- name: Wrap cc1 (and cc1plus if present) to record calls
run: |
cat >/usr/local/bin/wrapper1 <<'EOF'
Expand Down

0 comments on commit b06f729

Please sign in to comment.