Update #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Swift Binary | |
on: push | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install Swift | |
run: | | |
brew install swift | |
- name: Build Swift Script | |
run: | | |
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-apple-darwin $(pwd)/test.jpg auto | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ocr-x86_64-apple-darwin | |
path: ./ocr-x86_64-apple-darwin | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ocr-aarch64-apple-darwin | |
path: ./ocr-aarch64-apple-darwin |