diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index ccad12d..fe10bd8 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -4,15 +4,7 @@ on: types: [created] workflow_dispatch: jobs: - publish: - strategy: - matrix: - publish-packages: [ - com.github.asus4.onnxruntime, - com.github.asus4.onnxruntime.unity, - com.github.asus4.onnxruntime.linux-x64-gpu, - com.github.asus4.onnxruntime.win-x64-gpu - ] + npm-publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,6 +16,18 @@ jobs: - run: ./download-binaries.sh v1.16.3 # Publish all packages in matrix - run: npm publish - working-directory: ${{ matrix.publish-packages }} + working-directory: com.github.asus4.onnxruntime + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish + working-directory: com.github.asus4.onnxruntime.unity + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish + working-directory: com.github.asus4.onnxruntime.linux-x64-gpu + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish + working-directory: com.github.asus4.onnxruntime.win-x64-gpu env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index c444e41..1191e1e 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ Pre-built libraries are available on [NPM](https://www.npmjs.com/package/com.git ] "dependencies": { // Core library - "com.github.asus4.onnxruntime": "0.1.6", + "com.github.asus4.onnxruntime": "0.1.8", // (Optional) Utilities for Unity - "com.github.asus4.onnxruntime.unity": "0.1.6", + "com.github.asus4.onnxruntime.unity": "0.1.8", // (Optional) GPU provider extensions for Windows/Linux (each 300mb+) // CPU for Windows/Linux is included in core library - "com.github.asus4.onnxruntime.win-x64-gpu": "0.1.6", - "com.github.asus4.onnxruntime.linux-x64-gpu": "0.1.6", + "com.github.asus4.onnxruntime.win-x64-gpu": "0.1.8", + "com.github.asus4.onnxruntime.linux-x64-gpu": "0.1.8", ... other dependencies } ``` diff --git a/com.github.asus4.onnxruntime-extensions/package.json b/com.github.asus4.onnxruntime-extensions/package.json index a94227d..04c44de 100644 --- a/com.github.asus4.onnxruntime-extensions/package.json +++ b/com.github.asus4.onnxruntime-extensions/package.json @@ -1,6 +1,6 @@ { "name": "com.github.asus4.onnxruntime-extensions", - "version": "0.1.6", + "version": "0.1.8", "displayName": "ONNX Runtime Extensions", "description": "ONNX Runtime Extensions for Unity", "keywords": [ @@ -10,7 +10,7 @@ "unity": "2022.3", "unityRelease": "0f1", "dependencies": { - "com.github.asus4.onnxruntime": "0.1.6" + "com.github.asus4.onnxruntime": "0.1.8" }, "repository": { "type": "git", diff --git a/com.github.asus4.onnxruntime.linux-x64-gpu/package.json b/com.github.asus4.onnxruntime.linux-x64-gpu/package.json index bd43332..8d221c4 100644 --- a/com.github.asus4.onnxruntime.linux-x64-gpu/package.json +++ b/com.github.asus4.onnxruntime.linux-x64-gpu/package.json @@ -1,6 +1,6 @@ { "name": "com.github.asus4.onnxruntime.linux-x64-gpu", - "version": "0.1.6", + "version": "0.1.8", "displayName": "ONNX Runtime - Linux x64 GPU", "description": "ONNX Runtime for Unity - Linux x64 GPU Provider", "keywords": [ @@ -10,7 +10,7 @@ "unity": "2022.3", "unityRelease": "0f1", "dependencies": { - "com.github.asus4.onnxruntime": "0.1.6" + "com.github.asus4.onnxruntime": "0.1.8" }, "repository": { "type": "git", diff --git a/com.github.asus4.onnxruntime.unity/package.json b/com.github.asus4.onnxruntime.unity/package.json index 2fb4150..9d33a9e 100644 --- a/com.github.asus4.onnxruntime.unity/package.json +++ b/com.github.asus4.onnxruntime.unity/package.json @@ -1,6 +1,6 @@ { "name": "com.github.asus4.onnxruntime.unity", - "version": "0.1.6", + "version": "0.1.8", "displayName": "ONNX Runtime Unity Utilities", "description": "ONNX Runtime Utilities for Unity", "keywords": [ @@ -10,7 +10,7 @@ "unity": "2022.3", "unityRelease": "0f1", "dependencies": { - "com.github.asus4.onnxruntime": "0.1.6" + "com.github.asus4.onnxruntime": "0.1.8" }, "repository": { "type": "git", diff --git a/com.github.asus4.onnxruntime.win-x64-gpu/package.json b/com.github.asus4.onnxruntime.win-x64-gpu/package.json index 3b7c458..4fe2ca7 100644 --- a/com.github.asus4.onnxruntime.win-x64-gpu/package.json +++ b/com.github.asus4.onnxruntime.win-x64-gpu/package.json @@ -1,6 +1,6 @@ { "name": "com.github.asus4.onnxruntime.win-x64-gpu", - "version": "0.1.6", + "version": "0.1.8", "displayName": "ONNX Runtime - Windows x64 GPU", "description": "ONNX Runtime for Unity - Windows x64 GPU Provider", "keywords": [ @@ -10,7 +10,7 @@ "unity": "2022.3", "unityRelease": "0f1", "dependencies": { - "com.github.asus4.onnxruntime": "0.1.6" + "com.github.asus4.onnxruntime": "0.1.8" }, "repository": { "type": "git", diff --git a/com.github.asus4.onnxruntime/package.json b/com.github.asus4.onnxruntime/package.json index 7a16934..e2ab343 100644 --- a/com.github.asus4.onnxruntime/package.json +++ b/com.github.asus4.onnxruntime/package.json @@ -1,6 +1,6 @@ { "name": "com.github.asus4.onnxruntime", - "version": "0.1.6", + "version": "0.1.8", "displayName": "ONNX Runtime", "description": "ONNX Runtime Plugin for Unity", "keywords": [ diff --git a/download-binaries.sh b/download-binaries.sh index 4a75198..00c8344 100755 --- a/download-binaries.sh +++ b/download-binaries.sh @@ -62,8 +62,9 @@ cp $TMP_DIR/onnxruntime-linux-x64-gpu-$TAG/lib/libonnxruntime_providers_*.so $PR # iOS download_package pod-archive-onnxruntime-c-$TAG.zip https://onnxruntimepackages.z14.web.core.windows.net -mkdir -p $PLUGINS_CORE_DIR/iOS~/onnxruntime.xcframework -cp -R $TMP_DIR/onnxruntime.xcframework $PLUGINS_CORE_DIR/iOS~/onnxruntime.xcframework +mkdir -p $PLUGINS_CORE_DIR/iOS~/onnxruntime.xcframework/ +cp -R $TMP_DIR/onnxruntime.xcframework/* $PLUGINS_CORE_DIR/iOS~/onnxruntime.xcframework/ +ls $PLUGINS_CORE_DIR/iOS~/onnxruntime.xcframework/ # Android curl -L https://repo1.maven.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/$TAG/onnxruntime-android-$TAG.aar -o $PLUGINS_CORE_DIR/Android/onnxruntime-android.aar