github: Simplify running the msvcrt workflow on push, for testing
Only pick parameters from "inputs" if we were invoked through a "workflow_dispatch" event.
This commit is contained in:
1 parent
0681c739aa
commit
2324d8354f
1 file changed
+10
-10
@@ -31,8 +31,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
event: push
|
event: ${{github.event_name == 'workflow_dispatch' && 'push' || 'schedule'}}
|
||||||
name: parameters
|
name: parameters
|
||||||
- name: Get build parameters
|
- name: Get build parameters
|
||||||
id: get-parameters
|
id: get-parameters
|
||||||
@@ -47,14 +47,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
- name: Download toolchain
|
- name: Download toolchain
|
||||||
uses: dawidd6/action-download-artifact@v10
|
uses: dawidd6/action-download-artifact@v10
|
||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
event: push
|
event: ${{github.event_name == 'workflow_dispatch' && 'push' || 'schedule'}}
|
||||||
name: linux-ucrt-x86_64-toolchain
|
name: linux-ucrt-x86_64-toolchain
|
||||||
- name: Unpack original toolchain
|
- name: Unpack original toolchain
|
||||||
run: |
|
run: |
|
||||||
@@ -105,14 +105,14 @@ jobs:
|
|||||||
echo /opt/llvm-mingw/bin >> $GITHUB_PATH
|
echo /opt/llvm-mingw/bin >> $GITHUB_PATH
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
- name: Download profile
|
- name: Download profile
|
||||||
uses: dawidd6/action-download-artifact@v10
|
uses: dawidd6/action-download-artifact@v10
|
||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
event: push
|
event: ${{github.event_name == 'workflow_dispatch' && 'push' || 'schedule'}}
|
||||||
name: profile
|
name: profile
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@@ -169,14 +169,14 @@ jobs:
|
|||||||
echo /llvm-mingw/bin >> $GITHUB_PATH
|
echo /llvm-mingw/bin >> $GITHUB_PATH
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{github.event_name == 'workflow_dispatch' && inputs.ref || 'master'}}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
./run-tests.sh /llvm-mingw
|
./run-tests.sh /llvm-mingw
|
||||||
./run-lldb-tests.sh /llvm-mingw
|
./run-lldb-tests.sh /llvm-mingw
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
if: ${{inputs.upload}}
|
if: ${{github.event_name == 'workflow_dispatch' && inputs.upload}}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
needs: [linux-msvcrt, linux-cross-windows, test-toolchain, prepare]
|
needs: [linux-msvcrt, linux-cross-windows, test-toolchain, prepare]
|
||||||
|
|||||||
Reference in new issue
Block a user