Skip to content

Ensure that semver files are always sorted in CI #4018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ci/style.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh

set -ex

Expand All @@ -18,3 +18,13 @@ else
exit 1
fi

for file in libc-test/semver/*.txt; do
case "$file" in
*TODO*) continue ;;
esac

if ! sort -C "$file"; then
echo "Unsorted semver file $file"
exit 1
fi
done
4 changes: 2 additions & 2 deletions libc-test/semver/android-aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ HWCAP2_SVESM4
PROT_BTI
PROT_MTE
SYS_arch_specific_syscall
SYS_fcntl
SYS_lseek
SYS_memfd_secret
SYS_mmap
SYS_syscalls
SYS_fcntl
__system_property_wait
user_regs_struct
user_fpsimd_struct
user_regs_struct
Loading