Skip to content

Commit

Permalink
先全部指名run-id规避github actions返回数据不对的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Mar 2, 2021
1 parent 3210177 commit bd7ba70
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build_unity_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- unreal/Puerts/Source/JsEnv/Private/PromiseRejectCallback.hpp
- .github/workflows/build_unity_plugins.yml

env:
RUNID: 613573412

jobs:
android:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,7 +50,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Install NDK
Expand Down Expand Up @@ -98,7 +102,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Use Xcode 12.0 for x86
Expand Down Expand Up @@ -142,7 +147,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Use Xcode 12.0 for x86
Expand Down Expand Up @@ -185,7 +191,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Build
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: ci

on:
push:

env:
RUNID: 613573412

jobs:
ci-v8:
Expand Down Expand Up @@ -39,12 +42,11 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Download artifact
uses: chexiongsheng/action-download-artifact@master
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs.yml
workflow_conclusion: success
branch: master
name: qjs_v8
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Build plugin
run: |
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
description: 'tag name'
required: true

env:
RUNID: 613573412

jobs:
android:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,7 +48,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Install NDK
Expand Down Expand Up @@ -96,7 +100,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Use Xcode 12.0 for x86
Expand Down Expand Up @@ -140,7 +145,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Use Xcode 12.0 for x86
Expand Down Expand Up @@ -183,7 +189,8 @@ jobs:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build_quickjs_impl_v8.yml
workflow: build_quickjs.yml
run_id: ${{env.RUNID}}
name: qjs_v8_bin
path: unity/native_src/
- name: Build
Expand Down

0 comments on commit bd7ba70

Please sign in to comment.