-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download libs script update (adds #7907 wget2) - params and fixes dep…
…loy logs (#8002) * downloader in parallel (cherry picked from commit 6e8819c) * Update download_libs.sh - parallel downloads (cherry picked from commit 2391c4f) * wget2 changes downloader fixes * Updated downloader script to support changes for parellel downloads, no ssl, wget2, curl, wget Cleaned up download_libs with better logs and overwrite settings to the target download type * downloader fix up URLs parellel * Downloader fix parallel curl - add commands * Apothecary Fix up commands * Download script osx - no need to send -a causing double download * Downloader updates - fixes command determination artefact now tracks installed of curl/wget2/wget in variable - added wget2 params for override or continue last download (-nc) - t20 retries - console formatting - added error message if no commands installed * cURL Test Ci * wget og Ci test * wget2 Ci Test / SSL off * download libs ci just BITS target * ci focused VS bits off for the moment * ci test downloader --silent * Download libs fix arch * Download script v3.0.1 - fixes for cURL in silent mode cURL now has progress bar Version in echo Wget2/wget Verbose turned off Download_libs silent now passed as bool * Download_libs fixed Overwrite - Overwrite / remove old libs was not working at all - not looping correctly for core libs - rewrote loop - Overwrite now removes old libs for that target type for the download... will remove only osx if download osx etc rather than all for that library - Overwrite Addons now will work if folders are deleted * downloader 3.1.0 wget/wget2 - now checks remote file vs local if found and optimises - won't download if same * download_libs 2.1 - - files downloaded (zip/tar.bz2) are now stored in libs/download/ - creates libs/download for downloading zips/tars for optimisation - clean up of logs - not removing dl zip now - code to remove zips on start also done commented out * download_libs - set PLATFORM to target if set - include overwrite off * downloader 3.1.1 - fixes for cURL - no ssl fixed * github actions workflow fix for concurrency in PRs being cancelled by other PRs of not the same hash. fallback to sha for non-prs * cURL optimisation with remote and local file check. Using HEAD flags so it just queries the content size and time rather than getting whole file * github actions cleanup cache * Linux Cache off * apt-get broken for ssl-dev * no cache on libssl * cache remove ssl/curl * chmod +x for msys2 * cache disable for linux * linux cache? * ubuntu-22.04 * Downloader 3.2.1 - wget2 re-enabled default if available --------- Co-authored-by: Dimitre <dimitre@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
317 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
git | ||
unzip | ||
rsync | ||
wget2 | ||
wget | ||
- name: Install dependencies | ||
shell: msys2 {0} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: cleanup caches by a branch | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Cleanup | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
REPO=${{ github.repository }} | ||
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge" | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.