-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
106 changed files
with
6,485 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: iOS Demos | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'demo/ios/**' | ||
- '.github/workflows/ios-demos.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'demo/ios/**' | ||
- '.github/workflows/ios-demos.yml' | ||
|
||
jobs: | ||
build-completion-demo: | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: demo/ios/PicoLLMCompletionDemo | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Build | ||
run: xcrun xcodebuild build | ||
-configuration Debug | ||
-workspace PicoLLMCompletionDemo.xcworkspace | ||
-sdk iphoneos | ||
-scheme PicoLLMCompletionDemo | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO | ||
|
||
build-chat-demo: | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: demo/ios/PicoLLMChatDemo | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Build | ||
run: xcrun xcodebuild build | ||
-configuration Debug | ||
-workspace PicoLLMChatDemo.xcworkspace | ||
-sdk iphoneos | ||
-scheme PicoLLMChatDemo | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: iOS Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/ios-local.yml' | ||
- 'binding/ios/PicoLLMAppTest/**' | ||
- 'resources/.test/**' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '.github/workflows/ios-local.yml' | ||
- 'binding/ios/PicoLLMAppTest/**' | ||
- 'resources/.test/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/ios/PicoLLMAppTest | ||
|
||
jobs: | ||
build: | ||
name: Run iOS Tests | ||
runs-on: pv-ios | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Cocoapods | ||
run: pod install | ||
|
||
- name: Inject AccessKey | ||
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:' | ||
PicoLLMAppTestUITests/BaseTest.swift | ||
|
||
- name: Inject Resource URL | ||
run: sed -i '.bak' 's?{TESTING_MODEL_URL_HERE}?http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.bin/latest/phi2-290.bin?' | ||
PicoLLMAppTestUITests/BaseTest.swift | ||
|
||
- name: XCode Build | ||
run: xcrun xcodebuild build-for-testing | ||
-configuration Debug | ||
-workspace PicoLLMAppTest.xcworkspace | ||
-sdk iphoneos | ||
-scheme PicoLLMAppTest | ||
-derivedDataPath ddp | ||
CODE_SIGNING_ALLOWED=NO | ||
|
||
- name: Run Tests on Simulator | ||
run: xcrun xcodebuild test | ||
-workspace PicoLLMAppTest.xcworkspace | ||
-scheme PicoLLMAppTest | ||
-destination 'platform=iOS Simulator,name=iPhone 13' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'picoLLM-iOS' | ||
s.module_name = 'PicoLLM' | ||
s.version = '1.0.0' | ||
s.license = {:type => 'Apache 2.0'} | ||
s.summary = 'picoLLM Inference Engine' | ||
s.description = | ||
<<-DESC | ||
picoLLM Inference Engine iOS SDK. | ||
DESC | ||
s.homepage = 'https://github.com/Picovoice/picollm/tree/master/binding/ios' | ||
s.author = { 'Picovoice' => '[email protected]' } | ||
s.source = { :git => '' } | ||
s.ios.deployment_target = '13.0' | ||
s.swift_version = '5.0' | ||
s.vendored_frameworks = 'lib/ios/PvPicoLLM.xcframework' | ||
s.source_files = '*.{swift}' | ||
s.exclude_files = 'PicoLLMAppTest/**' | ||
end |
Oops, something went wrong.