-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andreea Andrisan <[email protected]>
- Loading branch information
Showing
2 changed files
with
409 additions
and
331 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash -e | ||
|
||
swdownloads_artifacts() { | ||
local linux_dist='Fedora-34 Fedora-28 Ubuntu-18.04 Ubuntu-20.04 Ubuntu-22.04 Debian-11 Debian-12 openSUSE-15.4 CentOS-7' | ||
for distribution in $linux_dist; do | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Linux-${distribution}" | ||
if [ "${distribution}" == "Fedora-34" ] || [ "${distribution}" == "Fedora-28" ] || [ "${distribution}" == "CentOS-7" ]; then | ||
find . -name '*.rpm' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.rpm" ";" | ||
else | ||
find . -name '*.deb' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.deb" ";" | ||
fi | ||
rm -r ../Linux-"${distribution}" | ||
done | ||
|
||
local macOS_dist='macOS-12 macOS-13-x64 macOS-13-arm64' | ||
for distribution in $macOS_dist; do | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/${distribution}" | ||
find . -name '*.pkg' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.pkg" ";" | ||
rm -r ../"${distribution}" | ||
done | ||
|
||
local windows_dist='2019 2022' | ||
for distribution in $windows_dist; do | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}" | ||
zip -r "Windows-VS-${distribution}-x64-latest_${branch}_libad9361".zip "Windows-VS-${distribution}-x64" | ||
rm -r "Windows-VS-${distribution}-x64" | ||
done | ||
|
||
local arm_dist='arm32v7 arm64v8 ppc64le x390x' | ||
for distribution in $arm_dist; do | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Ubuntu-${distribution}" | ||
find . -name '*.deb' -exec mv {} ../"Ubuntu-${distribution}_latest_${branch}_libad9361.deb" ";" | ||
rm -r ../Ubuntu-"${distribution}" | ||
done | ||
|
||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Libad9361-Setup-Exe" | ||
mv libad9361-setup.exe ../libad9361-setup.exe | ||
rm -r ../Libad9361-Setup-Exe | ||
|
||
} | ||
|
||
branch=${2} | ||
echo $branch | ||
"${1}"_artifacts |
Oops, something went wrong.