Skip to content

Commit

Permalink
Test sound on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ichizok committed May 2, 2024
1 parent 9fe5b80 commit c665571
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ jobs:
echo "start_dt=$(date +'%F %H:%M:%S')" >> $GITHUB_OUTPUT
cat <<'EOT' > test.swift
import AppKit
NSSound(named: "Tink")?.play()
if let s = NSSound(named: "Tink") {
if !s.play() {
exit(1)
}
}
EOT
swift test.swift
xcrun swiftc -o test.out test.swift
./test.out
- name: Log
if: always()
Expand Down

0 comments on commit c665571

Please sign in to comment.