Skip to content

Commit 78bef37

Browse files
committed
test prepare artifacts
Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
1 parent 1412905 commit 78bef37

File tree

2 files changed

+409
-331
lines changed

2 files changed

+409
-331
lines changed

CI/azure/prepare_assets.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash -e
2+
3+
swdownloads_artifacts() {
4+
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'
5+
for distribution in $linux_dist; do
6+
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Linux-${distribution}"
7+
if [ "${distribution}" == "Fedora-34" ] || [ "${distribution}" == "Fedora-28" ] || [ "${distribution}" == "CentOS-7" ]; then
8+
find . -name '*.rpm' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.rpm" ";"
9+
else
10+
find . -name '*.deb' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.deb" ";"
11+
fi
12+
rm -r ../Linux-"${distribution}"
13+
done
14+
15+
local macOS_dist='macOS-12 macOS-13-x64 macOS-13-arm64'
16+
for distribution in $macOS_dist; do
17+
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/${distribution}"
18+
find . -name '*.pkg' -exec mv {} ../"${distribution}_latest_${branch}_libad9361.pkg" ";"
19+
rm -r ../"${distribution}"
20+
done
21+
22+
local windows_dist='2019 2022'
23+
for distribution in $windows_dist; do
24+
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}"
25+
zip -r "Windows-VS-${distribution}-x64-latest_${branch}_libad9361".zip "Windows-VS-${distribution}-x64"
26+
rm -r "Windows-VS-${distribution}-x64"
27+
done
28+
29+
local arm_dist='arm32v7 arm64v8 ppc64le x390x'
30+
for distribution in $arm_dist; do
31+
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Ubuntu-${distribution}"
32+
find . -name '*.deb' -exec mv {} ../"Ubuntu-${distribution}_latest_${branch}_libad9361.deb" ";"
33+
rm -r ../Ubuntu-"${distribution}"
34+
done
35+
36+
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Libad9361-Setup-Exe"
37+
mv libad9361-setup.exe ../libad9361-setup.exe
38+
rm -r ../Libad9361-Setup-Exe
39+
40+
}
41+
42+
branch=${2}
43+
echo $branch
44+
"${1}"_artifacts

0 commit comments

Comments
 (0)