mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #36085 from ClickHouse/build-check-format
Fix BUILD_NAME issue in build jobs
This commit is contained in:
commit
e13a0d09b2
20
.github/workflows/backport_branches.yml
vendored
20
.github/workflows/backport_branches.yml
vendored
@ -155,8 +155,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -196,8 +196,8 @@ jobs:
|
|||||||
- name: Upload build URLs to artifacts
|
- name: Upload build URLs to artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ runner.temp }}/build_check/${{ env.BUILD_NAME }}.json
|
path: ${{ runner.temp }}/build_check/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -241,8 +241,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -286,8 +286,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -331,8 +331,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
68
.github/workflows/master.yml
vendored
68
.github/workflows/master.yml
vendored
@ -219,8 +219,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -260,8 +260,8 @@ jobs:
|
|||||||
- name: Upload build URLs to artifacts
|
- name: Upload build URLs to artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ runner.temp }}/build_check/${{ env.BUILD_NAME }}.json
|
path: ${{ runner.temp }}/build_check/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -305,8 +305,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -350,8 +350,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -395,8 +395,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -440,8 +440,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -485,8 +485,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -530,8 +530,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -575,8 +575,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -620,8 +620,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -668,8 +668,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -713,8 +713,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -758,8 +758,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -803,8 +803,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -848,8 +848,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -893,8 +893,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -938,8 +938,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
68
.github/workflows/pull_request.yml
vendored
68
.github/workflows/pull_request.yml
vendored
@ -272,8 +272,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -317,8 +317,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -362,8 +362,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -404,8 +404,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ runner.temp }}/build_check/${{ env.BUILD_NAME }}.json
|
path: ${{ runner.temp }}/build_check/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -446,8 +446,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ runner.temp }}/build_check/${{ env.BUILD_NAME }}.json
|
path: ${{ runner.temp }}/build_check/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -491,8 +491,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -536,8 +536,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -581,8 +581,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -626,8 +626,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -671,8 +671,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -719,8 +719,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -764,8 +764,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -809,8 +809,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -854,8 +854,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -899,8 +899,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -944,8 +944,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -989,8 +989,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
28
.github/workflows/release_branches.yml
vendored
28
.github/workflows/release_branches.yml
vendored
@ -146,8 +146,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -187,8 +187,8 @@ jobs:
|
|||||||
- name: Upload build URLs to artifacts
|
- name: Upload build URLs to artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ runner.temp }}/build_check/${{ env.BUILD_NAME }}.json
|
path: ${{ runner.temp }}/build_check/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -232,8 +232,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -277,8 +277,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -322,8 +322,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -367,8 +367,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@ -412,8 +412,8 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BUILD_NAME }}
|
name: ${{ env.BUILD_URLS }}
|
||||||
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_NAME }}.json
|
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
@ -6,6 +6,7 @@ import json
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
from shutil import rmtree
|
||||||
from typing import List, Optional, Tuple
|
from typing import List, Optional, Tuple
|
||||||
|
|
||||||
from env_helper import REPO_COPY, TEMP_PATH, CACHES_PATH, IMAGES_PATH
|
from env_helper import REPO_COPY, TEMP_PATH, CACHES_PATH, IMAGES_PATH
|
||||||
@ -64,22 +65,22 @@ def get_packager_cmd(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if build_config["build_type"]:
|
if build_config["build_type"]:
|
||||||
cmd += " --build-type={}".format(build_config["build_type"])
|
cmd += f" --build-type={build_config['build_type']}"
|
||||||
if build_config["sanitizer"]:
|
if build_config["sanitizer"]:
|
||||||
cmd += " --sanitizer={}".format(build_config["sanitizer"])
|
cmd += f" --sanitizer={build_config['sanitizer']}"
|
||||||
if build_config["splitted"] == "splitted":
|
if build_config["splitted"] == "splitted":
|
||||||
cmd += " --split-binary"
|
cmd += " --split-binary"
|
||||||
if build_config["tidy"] == "enable":
|
if build_config["tidy"] == "enable":
|
||||||
cmd += " --clang-tidy"
|
cmd += " --clang-tidy"
|
||||||
|
|
||||||
cmd += " --cache=ccache"
|
cmd += " --cache=ccache"
|
||||||
cmd += " --ccache_dir={}".format(ccache_path)
|
cmd += f" --ccache_dir={ccache_path}"
|
||||||
|
|
||||||
if "additional_pkgs" in build_config and build_config["additional_pkgs"]:
|
if "additional_pkgs" in build_config and build_config["additional_pkgs"]:
|
||||||
cmd += " --additional-pkgs"
|
cmd += " --additional-pkgs"
|
||||||
|
|
||||||
cmd += " --docker-image-version={}".format(image_version)
|
cmd += f" --docker-image-version={image_version}"
|
||||||
cmd += " --version={}".format(build_version)
|
cmd += f" --version={build_version}"
|
||||||
|
|
||||||
if _can_export_binaries(build_config):
|
if _can_export_binaries(build_config):
|
||||||
cmd += " --with-binaries=tests"
|
cmd += " --with-binaries=tests"
|
||||||
@ -136,7 +137,7 @@ def create_json_artifact(
|
|||||||
success: bool,
|
success: bool,
|
||||||
):
|
):
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
f"echo 'BUILD_NAME=build_urls_{build_name}' >> $GITHUB_ENV", shell=True
|
f"echo 'BUILD_URLS=build_urls_{build_name}' >> $GITHUB_ENV", shell=True
|
||||||
)
|
)
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
@ -149,16 +150,9 @@ def create_json_artifact(
|
|||||||
|
|
||||||
json_name = "build_urls_" + build_name + ".json"
|
json_name = "build_urls_" + build_name + ".json"
|
||||||
|
|
||||||
print(
|
print(f"Dump json report {result} to {json_name} with env build_urls_{build_name}")
|
||||||
"Dump json report",
|
|
||||||
result,
|
|
||||||
"to",
|
|
||||||
json_name,
|
|
||||||
"with env",
|
|
||||||
"build_urls_{build_name}",
|
|
||||||
)
|
|
||||||
|
|
||||||
with open(os.path.join(temp_path, json_name), "w") as build_links:
|
with open(os.path.join(temp_path, json_name), "w", encoding="utf-8") as build_links:
|
||||||
json.dump(result, build_links)
|
json.dump(result, build_links)
|
||||||
|
|
||||||
|
|
||||||
@ -277,7 +271,12 @@ def main():
|
|||||||
ccache_path = os.path.join(CACHES_PATH, build_name + "_ccache")
|
ccache_path = os.path.join(CACHES_PATH, build_name + "_ccache")
|
||||||
|
|
||||||
logging.info("Will try to fetch cache for our build")
|
logging.info("Will try to fetch cache for our build")
|
||||||
|
try:
|
||||||
get_ccache_if_not_exists(ccache_path, s3_helper, pr_info.number, TEMP_PATH)
|
get_ccache_if_not_exists(ccache_path, s3_helper, pr_info.number, TEMP_PATH)
|
||||||
|
except Exception as e:
|
||||||
|
# In case there are issues with ccache, remove the path and do not fail a build
|
||||||
|
logging.info("Failed to get ccache, building without it. Error: %s", e)
|
||||||
|
rmtree(ccache_path, ignore_errors=True)
|
||||||
|
|
||||||
if not os.path.exists(ccache_path):
|
if not os.path.exists(ccache_path):
|
||||||
logging.info("cache was not fetched, will create empty dir")
|
logging.info("cache was not fetched, will create empty dir")
|
||||||
@ -337,7 +336,7 @@ def main():
|
|||||||
|
|
||||||
print("::notice ::Build URLs: {}".format("\n".join(build_urls)))
|
print("::notice ::Build URLs: {}".format("\n".join(build_urls)))
|
||||||
|
|
||||||
print("::notice ::Log URL: {}".format(log_url))
|
print(f"::notice ::Log URL: {log_url}")
|
||||||
|
|
||||||
create_json_artifact(
|
create_json_artifact(
|
||||||
TEMP_PATH, build_name, log_url, build_urls, build_config, elapsed, success
|
TEMP_PATH, build_name, log_url, build_urls, build_config, elapsed, success
|
||||||
|
Loading…
Reference in New Issue
Block a user