Skip to content

Commit

Permalink
[MNN:CI] update upload/download-artifact@v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Nov 14, 2024
1 parent 04cdaf1 commit deb7925
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/mnn_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
setup:
permissions:
Expand Down Expand Up @@ -34,8 +36,9 @@ jobs:
rm -f ${{ env.PACKAGENAME }}.zip
zip -9 -y -r ${{ env.PACKAGENAME }}.zip ${{ env.PACKAGENAME }}
- name: upload-zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}.zip

windows-release:
Expand All @@ -44,7 +47,7 @@ jobs:
env:
PACKAGENAME: mnn_${{ needs.setup.outputs.VERSION }}_windows_x64_cpu_opencl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -58,6 +61,7 @@ jobs:
- name: upload-zip
uses: actions/upload-artifact@v4
with:
name: artifact-${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}.zip

macos-release:
Expand All @@ -79,8 +83,9 @@ jobs:
rm -f ${{ env.PACKAGENAME }}.zip
zip -9 -y -r ${{ env.PACKAGENAME }}.zip ${{ env.PACKAGENAME }}
- name: upload-zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}.zip

android-release:
Expand All @@ -99,8 +104,9 @@ jobs:
rm -f ${{ env.PACKAGENAME }}.zip
zip -9 -y -r ${{ env.PACKAGENAME }}.zip ${{ env.PACKAGENAME }}
- name: upload-zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}.zip

ios-release:
Expand All @@ -123,18 +129,19 @@ jobs:
rm -f ${{ env.PACKAGENAME }}.zip
zip -9 -y -r ${{ env.PACKAGENAME }}.zip ios_build/Release-iphoneos/MNN.framework
- name: upload-zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}.zip

upload-release:
name: upload_to_release
needs: [linux-release, windows-release, macos-release, android-release, ios-release]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: artifact-*
path: assert

- name: show file
Expand All @@ -146,4 +153,4 @@ jobs:
with:
file: assert/*.zip
tags: true
draft: true
draft: true
7 changes: 4 additions & 3 deletions .github/workflows/pymnn_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.arch }}-${{ matrix.arch }}
path: wheelhouse/*.whl

publish_wheels:
Expand All @@ -83,12 +84,12 @@ jobs:
with:
python-version: '3.x'

- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: artifact-*
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
skip_existing: true

0 comments on commit deb7925

Please sign in to comment.