Skip to content
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
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Capture compiler log for SwiftLint analyzer
run: |
xcodebuild \
-project LinguistMac.xcodeproj \
-scheme LinguistMac \
-configuration Debug \
-destination 'platform=macOS' \
Expand All @@ -67,9 +68,7 @@ jobs:
matrix:
include:
- configuration: Debug
swift-configuration: debug
- configuration: Release
swift-configuration: release

steps:
- name: Check out repository
Expand All @@ -79,29 +78,24 @@ jobs:

- name: Print tool versions
run: |
swift --version
xcodebuild -version

- name: Build Swift package
run: swift build -c ${{ matrix.swift-configuration }} --product LinguistMac

- name: Run Swift package tests
run: swift test -c ${{ matrix.swift-configuration }}

- name: Build app scheme with xcodebuild
- name: Build app with xcodebuild
run: |
xcodebuild \
-project LinguistMac.xcodeproj \
-scheme LinguistMac \
-configuration ${{ matrix.configuration }} \
-destination 'platform=macOS' \
-derivedDataPath "$RUNNER_TEMP/LinguistMacDerivedData-${{ matrix.configuration }}" \
CODE_SIGNING_ALLOWED=NO \
build

- name: Test package scheme with xcodebuild
- name: Run unit tests with xcodebuild
run: |
xcodebuild \
-scheme LinguistMac-Package \
-project LinguistMac.xcodeproj \
-scheme LinguistMac \
-configuration ${{ matrix.configuration }} \
-destination 'platform=macOS' \
-derivedDataPath "$RUNNER_TEMP/LinguistMacDerivedDataTests-${{ matrix.configuration }}" \
Expand All @@ -122,15 +116,21 @@ jobs:

- name: Build with strict Swift compiler flags
run: |
swift build \
-c debug \
--product LinguistMac \
-Xswiftc -warnings-as-errors \
-Xswiftc -strict-concurrency=complete
xcodebuild \
-project LinguistMac.xcodeproj \
-scheme LinguistMac \
-configuration Debug \
-destination 'platform=macOS' \
-derivedDataPath "$RUNNER_TEMP/LinguistMacStrictDerivedData" \
CODE_SIGNING_ALLOWED=NO \
SWIFT_TREAT_WARNINGS_AS_ERRORS=YES \
GCC_TREAT_WARNINGS_AS_ERRORS=YES \
build

- name: Run Xcode static analyzer
run: |
xcodebuild \
-project LinguistMac.xcodeproj \
-scheme LinguistMac \
-configuration Debug \
-destination 'platform=macOS' \
Expand Down
30 changes: 30 additions & 0 deletions Configuration/LinguistMac/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>LinguistMac</string>
<key>CFBundleExecutable</key>
<string>LinguistMac</string>
<key>CFBundleIdentifier</key>
<string>com.peerapatj.LinguistMac</string>
<key>CFBundleName</key>
<string>LinguistMac</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>15.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright 2026 Peerapat Jardrit</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
8 changes: 8 additions & 0 deletions Configuration/LinguistMac/LinguistMac.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>
Loading
Loading