-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change the name of the release - add prepare_assets.sh script that will copy or archive the artifacts for release, depending on each build. - archive_artifacts.sh will be removed because that functions will be included in prepare_assets.sh. Signed-off-by: Raluca Chis <raluca.chis@analog.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
#!/bin/bash -e | ||
|
||
move_artifacts() { | ||
local rpm_assets='CentOS-7-x86_64 CentOS-8-x86_64' | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}" | ||
for i in $rpm_assets; do | ||
cd "${i}" | ||
find . -name '*.rpm' -exec mv {} ../ ";" | ||
cd ../ | ||
rm -r "${i}" | ||
done | ||
|
||
local deb_assets='Ubuntu-16.04-x86_64 Ubuntu-18.04-x86_64 | ||
Ubuntu-20.04-x86_64 Debian-Buster-ARM | ||
Debian-Buster-ARM64' | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}" | ||
for i in $deb_assets; do | ||
cd "${i}" | ||
find . -name '*.deb' -exec mv {} ../ ";" | ||
cd ../ | ||
rm -r "${i}" | ||
done | ||
|
||
local pkg_assets='macOS-10.14 macOS-10.15' | ||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}" | ||
for i in $pkg_assets; do | ||
cd "${i}" | ||
find . -name '*.pkg' -exec mv {} ../ ";" | ||
find . -name '*.gz' -exec mv {} ../ ";" | ||
cd ../ | ||
rm -r "${i}" | ||
done | ||
} | ||
|
||
archive_windows() { | ||
local windows_dist='Win32 x64' | ||
|
||
cd "${BUILD_ARTIFACTSTAGINGDIRECTORY}" | ||
for distribution in $windows_dist; do | ||
zip -r Windows-VS-16-2019-"${distribution}".zip Windows-VS-16-2019-"${distribution}" | ||
rm -r Windows-VS-16-2019-"${distribution}" | ||
done | ||
} | ||
|
||
move_artifacts | ||
archive_windows |
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