forked from qt-creator/qt-creator
GitHub Actions: Increase number of artifacts to search after cache
By default it's 30 per page and one page. Increasing to 100 per page and trying out 10 pages should provide recent results. Change-Id: I46d8e20a35f94d2ef81cc0bbead4bade66a17f5a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
8
.github/workflows/build_cmake.yml
vendored
8
.github/workflows/build_cmake.yml
vendored
@@ -375,8 +375,10 @@ jobs:
|
||||
run: |
|
||||
file(WRITE $ENV{GITHUB_WORKSPACE}/netrc.txt
|
||||
"default login runneradmin password ${{ secrets.GITHUB_TOKEN }}")
|
||||
|
||||
foreach(page_id RANGE 1 10)
|
||||
file(
|
||||
DOWNLOAD "https://api.github.com/repos/${{ github.repository }}/actions/artifacts"
|
||||
DOWNLOAD "https://api.github.com/repos/${{ github.repository }}/actions/artifacts?per_page=100&page=${page_id}"
|
||||
HTTPHEADER "Accept: application/vnd.github.v3+json"
|
||||
NETRC_FILE "$ENV{GITHUB_WORKSPACE}/netrc.txt"
|
||||
NETRC REQUIRED
|
||||
@@ -399,9 +401,11 @@ jobs:
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf "${{ steps.ccache.outputs.archive_name }}.zip")
|
||||
file(MAKE_DIRECTORY .ccache)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "../${{ steps.ccache.outputs.archive_name }}.tar" WORKING_DIRECTORY .ccache)
|
||||
break()
|
||||
|
||||
return()
|
||||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
- name: Install system libs
|
||||
shell: cmake -P {0}
|
||||
|
Reference in New Issue
Block a user