Skip to content

Commit

Permalink
️️⚡️ BUMP ⚡️ ciutil 9(+) 3(-)
Browse files Browse the repository at this point in the history
  • Loading branch information
borestad committed Feb 14, 2024
1 parent 43c35f7 commit 537d100
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/scripts/ciutil
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ download() {

install-deb() {
local pkgs="$@"
local exitcode=0

sudo apt-get -qq install --download-only -y $pkgs || exitcode=$?

if [ ! $exitcode -eq 0 ]; then
Expand All @@ -33,12 +35,16 @@ install-deb() {
preinstall-binaries() {
local dir=$PWD

# Testing:
sudo rm -rf /var/lib/apt/*
sudo rm -rf /var/cache/*

# Optimize apt-get install time (no need for mandb on a ci)
sudo cp -p /bin/true /usr/bin/mandb 2> /dev/null || true
sudo mv -f /var/cache/man /tmp/ 2> /dev/null || true
# sudo rm -rf /usr/share/locale/
# sudo rm -rf /usr/share/man/
# sudo rm -rf /usr/share/doc/
sudo rm -rf /usr/share/locale/
sudo rm -rf /usr/share/man/
sudo rm -rf /usr/share/doc/

cp .github/scripts/ciutil ~/.local/bin/

Expand Down

0 comments on commit 537d100

Please sign in to comment.