Skip to content

Commit

Permalink
[unity]download-artifact升级到v4
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Feb 19, 2025
1 parent da101aa commit ca23fda
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_android
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_android
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_ios
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_ios
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_linux
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_linux
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_harmony
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_harmony
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_osx
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_osx
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_wasm
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_wasm
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
uses: actions/upload-artifact@v4
with:
path: ./unity/Assets/core/upm/Plugins/**/*
name: Unity_Plugins_(${{ inputs.backend }}_${{ inputs.config }})_window
name: Unity_Plugins_${{ inputs.backend }}_${{ inputs.config }}_window
- name: Clean
shell: bash
run: rm -rf ./unity/Assets/core/upm/Plugins/**/*
1 change: 1 addition & 0 deletions .github/workflows/unity_build_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- unreal/Puerts/Source/JsEnv/Private/PromiseRejectCallback.hpp
- unreal/Puerts/ThirdParty/**
- .github/workflows/unity_build_plugins.yml
- .github/workflows/composites/unity-build-plugins/**

env:
RUNID: 613573412
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/unity_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,30 +345,35 @@ jobs:
echo "API_LEVEL=$(cat unity/native_src/Src/Puerts.cpp | grep -Po '(?<=API_LEVEL\s)(\d+)')" >> $GITHUB_ENV
node -e "const pjson = JSON.parse(fs.readFileSync('$GITHUB_WORKSPACE/unity/Assets/core/upm/package.json', 'utf-8')); pjson.version = '${{ github.event.inputs.tag_name }}' ; fs.writeFileSync('$GITHUB_WORKSPACE/unity/Assets/core/upm/package.json', JSON.stringify(pjson))"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Unity_Plugins (v8_9.4_Release)
pattern: Unity_Plugins_v8_9.4_Release_*
path: V8/upm/Plugins/
merge-multiple: true

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Unity_Plugins (v8_10.6.194_Release)
pattern: Unity_Plugins_v8_10.6.194_Release_*
path: V8_10/upm/Plugins/
merge-multiple: true

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Unity_Plugins (quickjs_Release)
pattern: Unity_Plugins_quickjs_Release_*
path: Quickjs/upm/Plugins/
merge-multiple: true

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Unity_Plugins (nodejs_16_Release)
pattern: Unity_Plugins_nodejs_16_Release_*
path: Nodejs/upm/Plugins/
merge-multiple: true

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Unity_Plugins (mult_Release)
pattern: Unity_Plugins_mult_Release_*
path: Mult/upm/Plugins/
merge-multiple: true

- name: Create Release Asset
run: |
Expand Down

1 comment on commit ca23fda

@chexiongsheng
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.