Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Jul 27, 2023
1 parent a427260 commit ce65e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
- name: Build Swift Script
run: |
swiftc -target x86_64-apple-macos10.15 -o ocr-x86_64 main.swift
swiftc -target arm64-apple-macos11 -o ocr-arm64 main.swift
swiftc -target x86_64-apple-macos10.15 -o ocr-x86_64-apple-darwin main.swift
swiftc -target arm64-apple-macos11 -o ocr-aarch64-apple-darwin main.swift
- name: Test
run: ./ocr-x86_64 $(pwd)/test.jpg auto
run: ./ocr-x86_64-apple-darwin $(pwd)/test.jpg auto

- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: ocr-x86_64
path: ./ocr-x86_64
name: ocr-x86_64-apple-darwin
path: ./ocr-x86_64-apple-darwin

- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: ocr-arm64
path: ./ocr-arm64
name: ocr-aarch64-apple-darwin
path: ./ocr-aarch64-apple-darwin
2 changes: 1 addition & 1 deletion main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if CommandLine.argc < 2 {
} else {
let inputURL = URL(fileURLWithPath: CommandLine.arguments[1])
let language = CommandLine.arguments[2]
if let features = detectText(fileName : inputURL, lang : String), !features.isEmpty{}
if let features = detectText(fileName : inputURL, lang : language), !features.isEmpty{}
}

exit(EXIT_SUCCESS)

0 comments on commit ce65e59

Please sign in to comment.