github: Run the test-llvm and test-libcxx jobs scheduled on Sundays
In this case, run with the artifacts from the latest scheduled job.
This commit is contained in:
1 parent
7b53b4af23
commit
718a31ef1a
2 files changed
+20
-12
No files matched your search
@@ -17,9 +17,12 @@ on:
|
|||||||
options:
|
options:
|
||||||
- push
|
- push
|
||||||
- schedule
|
- schedule
|
||||||
|
schedule:
|
||||||
|
- cron: '30 13 * * 0' # 13:30 UTC on Sundays
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
LLVM_VERSION: ${{steps.get-parameters.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{steps.get-parameters.outputs.LLVM_VERSION}}
|
||||||
@@ -29,9 +32,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
commit: ${{inputs.commit}}
|
commit: ${{github.event_name != 'schedule' && inputs.commit || ''}}
|
||||||
branch: ${{inputs.commit == '' && inputs.branch || ''}}
|
branch: ${{github.event_name == 'schedule' && 'master' || (inputs.commit == '' && inputs.branch || '')}}
|
||||||
event: ${{inputs.pipeline_type}}
|
event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}}
|
||||||
name: parameters
|
name: parameters
|
||||||
- name: Get build parameters
|
- name: Get build parameters
|
||||||
id: get-parameters
|
id: get-parameters
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
cat $GITHUB_OUTPUT
|
cat $GITHUB_OUTPUT
|
||||||
|
|
||||||
test-libcxx:
|
test-libcxx:
|
||||||
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -59,9 +63,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
commit: ${{inputs.commit}}
|
commit: ${{github.event_name != 'schedule' && inputs.commit || ''}}
|
||||||
branch: ${{inputs.commit == '' && inputs.branch || ''}}
|
branch: ${{github.event_name == 'schedule' && 'master' || (inputs.commit == '' && inputs.branch || '')}}
|
||||||
event: ${{inputs.pipeline_type}}
|
event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}}
|
||||||
name: windows-ucrt-${{matrix.arch}}-toolchain
|
name: windows-ucrt-${{matrix.arch}}-toolchain
|
||||||
- name: Unpack toolchain
|
- name: Unpack toolchain
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -17,9 +17,12 @@ on:
|
|||||||
options:
|
options:
|
||||||
- push
|
- push
|
||||||
- schedule
|
- schedule
|
||||||
|
schedule:
|
||||||
|
- cron: '30 13 * * 0' # 13:30 UTC on Sundays
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
LLVM_VERSION: ${{steps.get-parameters.outputs.LLVM_VERSION}}
|
LLVM_VERSION: ${{steps.get-parameters.outputs.LLVM_VERSION}}
|
||||||
@@ -29,9 +32,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
commit: ${{inputs.commit}}
|
commit: ${{github.event_name != 'schedule' && inputs.commit || ''}}
|
||||||
branch: ${{inputs.commit == '' && inputs.branch || ''}}
|
branch: ${{github.event_name == 'schedule' && 'master' || (inputs.commit == '' && inputs.branch || '')}}
|
||||||
event: ${{inputs.pipeline_type}}
|
event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}}
|
||||||
name: parameters
|
name: parameters
|
||||||
- name: Get build parameters
|
- name: Get build parameters
|
||||||
id: get-parameters
|
id: get-parameters
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
cat $GITHUB_OUTPUT
|
cat $GITHUB_OUTPUT
|
||||||
|
|
||||||
test-llvm:
|
test-llvm:
|
||||||
|
if: (github.event_name != 'schedule') || (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -57,9 +61,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
commit: ${{inputs.commit}}
|
commit: ${{github.event_name != 'schedule' && inputs.commit || ''}}
|
||||||
branch: ${{inputs.commit == '' && inputs.branch || ''}}
|
branch: ${{github.event_name == 'schedule' && 'master' || (inputs.commit == '' && inputs.branch || '')}}
|
||||||
event: ${{inputs.pipeline_type}}
|
event: ${{github.event_name == 'schedule' && 'schedule' || inputs.pipeline_type}}
|
||||||
name: windows-ucrt-${{matrix.arch}}-toolchain
|
name: windows-ucrt-${{matrix.arch}}-toolchain
|
||||||
- name: Unpack toolchain
|
- name: Unpack toolchain
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user