Skip to content

Commit

Permalink
Check for unrecognized *-sys dependencies
Browse files Browse the repository at this point in the history
This adds another step to `pure-rust-build` that fails -- and fails
the job -- when there are any dependencies named `*-sys` other than
`linux-raw-sys`, which is known about.

(This is independent of the use of C in `ring` -- discussed
in GitoxideLabs#1681, GitoxideLabs#1682, and GitoxideLabs#1684 -- because `ring` is not, and does not
use, a `*-sys` dependency.)

This should fail prior to 3506afb (GitoxideLabs#1684) and pass afterwards.
  • Loading branch information
EliahKagan committed Nov 18, 2024
1 parent 906acd3 commit 0a49894
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
- name: Wrap cc1 (and cc1plus if present) to record calls
run: |
cat >/usr/local/bin/wrapper1 <<'EOF'
Expand Down

0 comments on commit 0a49894

Please sign in to comment.