forked from schappim/macOCR
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (29 loc) · 892 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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