Skip to content

Commit

Permalink
feat: add support for iOS arm64 simulator build
Browse files Browse the repository at this point in the history
  • Loading branch information
stakemura committed Jan 10, 2024
1 parent ec24e94 commit f451ac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ permissions:
env:
PYTHON_VER: '3.10'
VERSION:
|- # Enter release tag name or version in workflow_dispatch. DEBUG if not specified
${{ github.event.release.tag_name || github.event.inputs.version || 'DEBUG' }}
|- # Enter release tag name or version in workflow_dispatch. Recent version if not specified
${{ github.event.release.tag_name || github.event.inputs.version || '2.15.0' }}
REPOSITORY:
${{ github.event.inputs.repository || 'tensorflow/tensorflow' }}

Expand All @@ -41,7 +41,7 @@ jobs:
- config: android_fat_aar
artifact_name: tflite-runtime-android-fat-aar
env:
ANDROID_SDK_API_LEVEL: 30
ANDROID_SDK_API_LEVEL: 31
ANDROID_NDK_API_LEVEL: 26
ANDROID_BUILD_TOOLS_VERSION: '31.0.0'
steps:
Expand Down Expand Up @@ -106,7 +106,6 @@ jobs:
mv artifact/ "${{ matrix.artifact_name }}-${{ env.VERSION }}"
tar czf "${{ matrix.artifact_name }}-${{ env.VERSION }}.tgz" "${{ matrix.artifact_name }}-${{ env.VERSION }}"
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.tgz"
tag_name: ${{ env.VERSION }}
Expand All @@ -119,8 +118,10 @@ jobs:
include:
- config: ios_arm64
artifact_name: tflite-runtime-ios-arm64
- config: ios_sim_arm64
artifact_name: tflite-runtime-ios-sim-arm64
- config: ios_x86_64
artifact_name: tflite-runtime-ios-x86_64
artifact_name: tflite-runtime-ios-sim-x86_64
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -158,7 +159,6 @@ jobs:
mv artifact/ "${{ matrix.artifact_name }}-${{ env.VERSION }}"
7z a "${{ matrix.artifact_name }}-${{ env.VERSION }}.zip" "${{ matrix.artifact_name }}-${{ env.VERSION }}"
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.zip"
tag_name: ${{ env.VERSION }}
Expand Down Expand Up @@ -198,7 +198,6 @@ jobs:
mv artifact/ "${{ matrix.artifact_name }}-${{ env.VERSION }}"
tar cfz "${{ matrix.artifact_name }}-${{ env.VERSION }}.tgz" "${{ matrix.artifact_name }}-${{ env.VERSION }}"
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.tgz"
tag_name: ${{ env.VERSION }}
Expand Down Expand Up @@ -249,7 +248,6 @@ jobs:
path: ${{ matrix.artifact_name }}-${{ env.VERSION }}
retention-days: 1
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.tgz"
tag_name: ${{ env.VERSION }}
Expand All @@ -267,7 +265,6 @@ jobs:
mv artifact/ "tflite-runtime-osx-universal2-${{ env.VERSION }}"
tar cfz "tflite-runtime-osx-universal2-${{ env.VERSION }}.tgz" "tflite-runtime-osx-universal2-${{ env.VERSION }}"
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.tgz"
tag_name: ${{ env.VERSION }}
Expand Down Expand Up @@ -309,7 +306,6 @@ jobs:
mv artifact/ "${{ matrix.artifact_name }}-${{ env.VERSION }}"
7z a "${{ matrix.artifact_name }}-${{ env.VERSION }}.zip" "${{ matrix.artifact_name }}-${{ env.VERSION }}"
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
files: "*.zip"
tag_name: ${{ env.VERSION }}
Expand All @@ -319,7 +315,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v1
if: env.VERSION != 'DEBUG'
with:
name: TFLite Runtime v${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ You can download the archived files of the runtime binaries from [Releases](http
| Android | .so | arm64-v8a | `tflite-runtime-android-arm64-*.tgz` |
| Android | .so | x86_64 | `tflite-runtime-android_x86_64-*.tgz` |
| Android | .aar | armeabi-v7, aarm64-v8a, x86_64 | `tflite-runtime-android-fat-aar-*.tgz` |
| iOS | .framework | arm64 | `tflite-runtime-ios-arm64-*.zip` |
| iOS | .framework | x86_64 | `tflite-runtime-ios-x86_64-*.zip` |
| iOS | .framework | arm64 | `tflite-runtime-ios-arm64-*.zip` |
| iOS Sim | .framework | arm64 | `tflite-runtime-ios-sim-arm64-*.zip` |
| iOS Sim | .framework | x86_64 | `tflite-runtime-ios-sim-x86_64-*.zip` |
| Linux | .so | AArch64 | `tflite-runtime-linux-arm64-*.tgz` |
| Linux | .so | x86_64 | `tflite-runtime-linux-x86_64-*.tgz` |
| macOS | .dylib | universal (arm64, x86_64) | `tflite-runtime-osx-universal2-*.tgz` |
Expand Down

0 comments on commit f451ac1

Please sign in to comment.