Skip to content

Commit

Permalink
azure-pipelines.yml: change link to artifacts from swdownlods
Browse files Browse the repository at this point in the history
The package naming for the artifacts has been changed to include main
instead of master, and new status builds and OS packages have also
been added to the table.

Signed-off-by: Andreea Andrisan <[email protected]>
  • Loading branch information
AAndrisa authored and cristina-suteu committed May 13, 2024
1 parent 6de223a commit 10b08bf
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 30 deletions.
25 changes: 15 additions & 10 deletions CI/azure/prepare_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,46 +62,51 @@ release_artifacts() {
}

swdownloads_artifacts() {
local linux_dist='Fedora-34 Fedora-28 Ubuntu-18.04 Ubuntu-20.04 Ubuntu-22.04 Debian-11 openSUSE-15.4 CentOS-7'
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_master_libiio.rpm" ";"
find . -name '*.rpm' -exec mv {} ../"${distribution}_latest_main_libiio.rpm" ";"
fi
find . -name '*.tar.gz' -exec mv {} ../"${distribution}_latest_master_libiio.tar.gz" ";"
find . -name '*.deb' -exec mv {} ../"${distribution}_latest_master_libiio.deb" ";"
find . -name '*.tar.gz' -exec mv {} ../"${distribution}_latest_main_libiio.tar.gz" ";"
find . -name '*.deb' -exec mv {} ../"${distribution}_latest_main_libiio.deb" ";"
rm -r ../Linux-"${distribution}"
done

local macOS_dist='macOS-11 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_master_libiio.pkg" ";"
find . -name '*.tar.gz' -exec mv {} ../"${distribution}_latest_master_libiio.tar.gz" ";"
find . -name '*.pkg' -exec mv {} ../"${distribution}_latest_main_libiio.pkg" ";"
find . -name '*.tar.gz' -exec mv {} ../"${distribution}_latest_main_libiio.tar.gz" ";"
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_master_libiio".zip "Windows-VS-${distribution}-x64"
zip -r "Windows-VS-${distribution}-x64-latest_main_libiio".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 '*.tar.gz' -exec mv {} ../"Ubuntu-${distribution}_latest_master_libiio.tar.gz" ";"
find . -name '*.deb' -exec mv {} ../"Ubuntu-${distribution}_latest_master_libiio.deb" ";"
find . -name '*.tar.gz' -exec mv {} ../"Ubuntu-${distribution}_latest_main_libiio.tar.gz" ";"
find . -name '*.deb' -exec mv {} ../"Ubuntu-${distribution}_latest_main_libiio.deb" ";"
rm -r ../Ubuntu-"${distribution}"
done

cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Debian12-arm"
find . -name '*.tar.gz' -exec mv {} ../"Debian12-arm_latest_main_libiio.tar.gz" ";"
find . -name '*.deb' -exec mv {} ../"Debian12-arm_latest_main_libiio.deb" ";"
rm -r ../Debian12-arm

cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}/Libiio-Setup-Exe"
mv libiio-setup.exe ../libiio-setup.exe
rm -r ../Libiio-Setup-Exe

cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}"
zip -r Windows-MinGW-W64-latest_master_libiio.zip Windows-MinGW-W64
zip -r Windows-MinGW-W64-latest_main_libiio.zip Windows-MinGW-W64
rm -r Windows-MinGW-W64
}

Expand Down
Loading

0 comments on commit 10b08bf

Please sign in to comment.