-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 982 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
38
39
40
41
42
43
44
45
46
name: Build
on:
push:
branches: [ "main" ]
paths:
- '**/*.swift'
pull_request:
branches: [ "main" ]
paths:
- '**/*.swift'
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Select Xcode
uses: mxcl/xcodebuild@v3
with:
xcode: 16.0
swift: 6.0
action: none
- name: Build
run: |
xcrun swift build --configuration release --arch arm64 --arch x86_64
tar -cvJf macSubtitleOCR.tar.xz -C .build/apple/Products/Release macSubtitleOCR
- name: Test
run: xcrun swift test
- name: Periphery
run: |
brew install peripheryapp/periphery/periphery
periphery scan --skip-build --index-store-path .build/debug/index/store
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: macSubtitleOCR.tar.xz
path: macSubtitleOCR.tar.xz