Skip to content

Commit

Permalink
[feat] add ios ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Jun 17, 2024
1 parent 26f96d9 commit ce0e075
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 97 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ios
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- 'ios/**'
- '.github/workflows/ios.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- 'ios/**'
- '.github/workflows/ios.yml'

jobs:
build:
name: ios-build
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: build
run: ./script/ios_build.sh
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
build:
name: linux-build
name: python-build
runs-on: ubuntu-latest

steps:
Expand Down
96 changes: 0 additions & 96 deletions resource/models/download_models.ps1

This file was deleted.

6 changes: 6 additions & 0 deletions script/ios_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xcodebuild build \
-project ios/mnn-llm/mnn-llm.xcodeproj \
-target mnn-llm \
-destination "platform=iOS,id=dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder,name=Any iOS Device" \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO

0 comments on commit ce0e075

Please sign in to comment.