Skip to content

Add multithreading support to OCR #113

Add multithreading support to OCR

Add multithreading support to OCR #113

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
paths:
- '**/*.swift'
pull_request:
branches: [ "main" ]
paths:
- '**/*.swift'
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dependencies
run: brew install ffmpeg peripheryapp/periphery/periphery
- name: Select Xcode
uses: mxcl/xcodebuild@v3
with:
swift: '6.0'
action: none
- name: Build Tests
run: xcrun swift test list
- name: Test FFmpeg Decoder
timeout-minutes: 5
run: xcrun swift test --skip-build --no-parallel --filter ffmpegDecoderTests
- name: Test Internal Decoder
timeout-minutes: 5
run: xcrun swift test --skip-build --no-parallel --filter internalDecoderTests
- name: Periphery
run: periphery scan --skip-build --index-store-path .build/debug/index/store
build:
name: Build
runs-on: macos-latest
needs: test
if: needs.test.result == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install FFmpeg
run: brew install ffmpeg
- name: Select Xcode
uses: mxcl/xcodebuild@v3
with:
swift: '6.0'
action: none
- name: Build
run: |
xcrun swift build --configuration release --arch arm64
tar -cvJf macSubtitleOCR.tar.xz -C .build/release/ macSubtitleOCR
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: macSubtitleOCR.tar.xz
path: macSubtitleOCR.tar.xz