Skip to content

Commit

Permalink
ci: upload artifacts if the build step is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 26, 2025
1 parent 8f54aa1 commit e7eddf6
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ jobs:
- name: Upload mediapipe_android.aar
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_android.aar
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android/mediapipe_android.aar
name: ${{ inputs.packageName }}-Android
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android

macos-build:
runs-on: macos-15
Expand Down Expand Up @@ -136,8 +136,8 @@ jobs:
- name: Upload libmediapipe_c.dylib
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.packageName }}-libmediapipe_c.dylib
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib
name: ${{ inputs.packageName }}-macOS-Plugins
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib*

ios-build:
runs-on: macos-14
Expand All @@ -162,8 +162,8 @@ jobs:
- name: Upload MediaPipeUnity.framework
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.packageName }}-MediaPipeUnity.framework
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/iOS/MediaPipeUnity.framework
name: ${{ inputs.packageName }}-iOS
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/iOS

windows-build:
runs-on: windows-2019
Expand Down Expand Up @@ -192,8 +192,8 @@ jobs:
- name: Upload mediapipe_c.dll
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_c.dll
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/mediapipe_c.dll
name: ${{ inputs.packageName }}-Windows-Plugins
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/mediapipe_c.dll*

package:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -255,29 +255,30 @@ jobs:
uses: actions/download-artifact@v4
with:
name: ${{ inputs.packageName }}-base
- name: Download mediapipe_android.aar
- name: Download Android libraries
uses: actions/download-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_android.aar
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android
- name: Download libmediapipe_c.dylib
name: ${{ inputs.packageName }}-Android
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins
- name: Download macOS libraries
uses: actions/download-artifact@v4
with:
name: ${{ inputs.packageName }}-libmediapipe_c.dylib
name: ${{ inputs.packageName }}-macOS-Plugins
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins
- name: Download MediaPipeUnity.framework
- name: Download iOS libraries
uses: actions/download-artifact@v4
with:
name: ${{ inputs.packageName }}-MediaPipeUnity.framework
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/iOS/MediaPipeUnity.framework
- name: Download mediapipe_c.dll
name: ${{ inputs.packageName }}-iOS
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins
- name: Download Windows libraries
uses: actions/download-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_c.dll
name: ${{ inputs.packageName }}-Windows-Plugins
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins

- name: Zip all
run: |
ls -R Packages/com.github.homuler.mediapipe/Runtime/Plugins
zip -r MediaPipeUnityPlugin-all.zip . -x .git/**\*
- name: Upload MediaPipeUnityPlugin-all.zip
Expand Down Expand Up @@ -334,20 +335,20 @@ jobs:

- uses: geekyeggo/delete-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_android.aar
name: ${{ inputs.packageName }}-Android
failOnError: false

- uses: geekyeggo/delete-artifact@v4
with:
name: ${{ inputs.packageName }}-libmediapipe_c.dylib
name: ${{ inputs.packageName }}-macOS-Plugins
failOnError: false

- uses: geekyeggo/delete-artifact@v4
with:
name: ${{ inputs.packageName }}-MediaPipeUnity.framework
name: ${{ inputs.packageName }}-iOS
failOnError: false

- uses: geekyeggo/delete-artifact@v4
with:
name: ${{ inputs.packageName }}-mediapipe_c.dll
name: ${{ inputs.packageName }}-Windows-Plugins
failOnError: false

0 comments on commit e7eddf6

Please sign in to comment.