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 5ed8fcf
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 101 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
4 changes: 0 additions & 4 deletions ios/mnn-llm/mnn-llm.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
4D94A73A2C2025B6004E5A87 /* SparseConvolutionTiledExecutor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488742C2025B0004E5A87 /* SparseConvolutionTiledExecutor.cpp */; };
4D94A73B2C2025B6004E5A87 /* StrassenMatmulComputor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488762C2025B0004E5A87 /* StrassenMatmulComputor.cpp */; };
4D94A73C2C2025B6004E5A87 /* WinogradOptFunction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488782C2025B0004E5A87 /* WinogradOptFunction.cpp */; };
4D94A7702C2025B6004E5A87 /* CMakeLists.txt in Resources */ = {isa = PBXBuildFile; fileRef = 4D9488CB2C2025B0004E5A87 /* CMakeLists.txt */; };
4D94A7712C2025B6004E5A87 /* CPUArgMax.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488CC2C2025B0004E5A87 /* CPUArgMax.cpp */; };
4D94A7722C2025B6004E5A87 /* CPUAttention.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488CE2C2025B0004E5A87 /* CPUAttention.cpp */; };
4D94A7732C2025B6004E5A87 /* CPUBackend.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4D9488D02C2025B0004E5A87 /* CPUBackend.cpp */; };
Expand Down Expand Up @@ -657,7 +656,6 @@
4D9488782C2025B0004E5A87 /* WinogradOptFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WinogradOptFunction.cpp; sourceTree = "<group>"; };
4D9488792C2025B0004E5A87 /* WinogradOptFunction.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = WinogradOptFunction.hpp; sourceTree = "<group>"; };
4D9488CA2C2025B0004E5A87 /* BinaryUtils.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = BinaryUtils.hpp; sourceTree = "<group>"; };
4D9488CB2C2025B0004E5A87 /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
4D9488CC2C2025B0004E5A87 /* CPUArgMax.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CPUArgMax.cpp; sourceTree = "<group>"; };
4D9488CD2C2025B0004E5A87 /* CPUArgMax.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = CPUArgMax.hpp; sourceTree = "<group>"; };
4D9488CE2C2025B0004E5A87 /* CPUAttention.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CPUAttention.cpp; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1423,7 +1421,6 @@
4D9488352C2025B0004E5A87 /* arm */,
4D94887A2C2025B0004E5A87 /* compute */,
4D9488CA2C2025B0004E5A87 /* BinaryUtils.hpp */,
4D9488CB2C2025B0004E5A87 /* CMakeLists.txt */,
4D9488CC2C2025B0004E5A87 /* CPUArgMax.cpp */,
4D9488CD2C2025B0004E5A87 /* CPUArgMax.hpp */,
4D9488CE2C2025B0004E5A87 /* CPUAttention.cpp */,
Expand Down Expand Up @@ -1896,7 +1893,6 @@
files = (
4D5B97932B2B21D5003AF2F1 /* Preview Assets.xcassets in Resources */,
4D5B97902B2B21D5003AF2F1 /* Assets.xcassets in Resources */,
4D94A7702C2025B6004E5A87 /* CMakeLists.txt in Resources */,
4D94B93A2C203DA7004E5A87 /* qwen1.5-0.5b-chat in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
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 5ed8fcf

Please sign in to comment.