Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: shorten build path #15166

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .ci/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ for package in "${packages[@]}"; do
echo "::group::[build] ${package}"
execute 'Clear cache' pacman -Scc --noconfirm
execute 'Fetch keys' "$DIR/fetch-validpgpkeys.sh"
execute 'Building binary' makepkg-mingw --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild
repo-add $PWD/artifacts/ci.db.tar.gz $PWD/$package/*.pkg.tar.*
cp -r ${package} B && cd B
message 'Building binary'
makepkg-mingw --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild || failure "${status} failed"
cd - > /dev/null
repo-add $PWD/artifacts/ci.db.tar.gz $PWD/B/*.pkg.tar.*
pacman -Sy
cp $PWD/$package/*.pkg.tar.* $PWD/artifacts
cp $PWD/B/*.pkg.tar.* $PWD/artifacts
echo "::endgroup::"

cd "$package"
cd B
for pkg in *.pkg.tar.*; do
pkgname="$(echo "$pkg" | rev | cut -d- -f4- | rev)"
echo "::group::[install] ${pkgname}"
Expand Down Expand Up @@ -110,7 +113,7 @@ for package in "${packages[@]}"; do
done
cd - > /dev/null

rm -f "${package}"/*.pkg.tar.*
rm -rf B
unset package
done
success 'All packages built successfully'
Expand Down