Skip to content
Open
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
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ jobs:
swiftc --version
echo "SDK: $(xcrun --sdk macosx --show-sdk-version 2>/dev/null || echo n/a)"

- name: Compile App.swift (zero-warning gate)
- name: Compile Swift sources (zero-warning gate)
run: |
set -euo pipefail
# Local + release builds target arm64-apple-macos26.0. CI compiles against the
# runner's SDK (which may predate macOS 26) purely as a clean-compile smoke test,
# so it does not force the 26.0 deployment target here.
swiftc -O -parse-as-library -framework AppKit App.swift -o /tmp/Sleepless 2> build.log \
swiftc -O -parse-as-library \
-framework AppKit -framework ServiceManagement -framework Network \
-framework IOKit \
AppLogger.swift \
ShellRunner.swift \
PowerController.swift \
AgentMonitor.swift \
ConnectivityMonitor.swift \
LidMonitor.swift \
App.swift \
-o /tmp/Sleepless 2> build.log \
|| { echo "::group::swiftc output"; cat build.log; echo "::endgroup::"; exit 1; }
cat build.log
if grep -q "warning:" build.log; then
Expand Down
Loading
Loading