Skip to content

Commit 13b3533

Browse files
committed
Fix GH actions: don't run periphery on macos 14
1 parent aa1b014 commit 13b3533

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

lint.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ source ./script/setup.sh
44

55
./format.sh "$@"
66

7-
./script/install-dep.sh --periphery
8-
# Disable superfluous comments detection because it's buggy. todo: report to periphery maintainer
9-
./.deps/periphery/periphery scan --quiet \
10-
--strict \
11-
--disable-redundant-public-analysis \
12-
--no-superfluous-ignore-comments \
13-
--exclude-targets \
14-
ShellParserGenerated
7+
if sw_vers -productVersion | grep -q "^14"; then # macOS 14
8+
# dyld[6263]: Library not loaded: /usr/lib/swift/libswiftSynchronization.dylib
9+
# Referenced from: <0A48220F-3DCA-3C6C-A54C-FE6C3B854E23> /Users/runner/work/AeroSpace/AeroSpace/.deps/periphery/dist/periphery-3.6.0.artifactbundle/periphery-3.6.0-macos/bin/periphery (built for macOS 15.0 which is newer than running OS)
10+
# Reason: tried: '/usr/lib/swift/libswiftSynchronization.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/libswiftSynchronization.dylib' (no such file), '/usr/lib/swift/libswiftSynchronization.dylib' (no such file, not in dyld cache)
11+
echo 'warning: periphery is disabled on macos 14'
12+
else
13+
./script/install-dep.sh --periphery
14+
# Disable superfluous comments detection because it's buggy. todo: report to periphery maintainer
15+
./.deps/periphery/periphery scan --quiet \
16+
--strict \
17+
--disable-redundant-public-analysis \
18+
--no-superfluous-ignore-comments \
19+
--exclude-targets \
20+
ShellParserGenerated
21+
fi

0 commit comments

Comments
 (0)