diff --git a/.github/scripts/ciutil b/.github/scripts/ciutil index 21bc318..1ca5654 100755 --- a/.github/scripts/ciutil +++ b/.github/scripts/ciutil @@ -16,6 +16,9 @@ download() { chmod +x $location 2> /dev/null || true } + +# A much faster alternative to apt-get install, +# without any hooks that slows down installation install-deb() { local pkgs="$@" local exitcode=0 @@ -61,13 +64,8 @@ preinstall-binaries() { # Optimize apt install time (no need for mandb on a ci) sudo cp -p /bin/true /usr/bin/mandb 2> /dev/null || true - # sudo mv -fv /var/cache/man /var/cache/man.bak 2> /dev/null || true - # sudo mv -fv /usr/share/locale /usr/share/locale.bak - # sudo mv -fv /usr/share/man /usr/share/man.bak - # sudo mv -fv /usr/share/doc /usr/share/doc.bak # TODO: Needs some testing. But no need for hooks, since it's a shortlived CI process. - sudo rm -rf /etc/apt/apt.conf.d/*needrestart* sudo rm -rf /etc/apt/apt.conf.d/* cp .github/scripts/ciutil ~/.local/bin/ diff --git a/README.md b/README.md index 001db2e..dbef953 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Goals: - Fastest installation possible - Multithreaded & parallellism by default - Cache + TTL support (reusable between ci runs) -- Optimized: one shot jobs (checkout + cache + install + run) should run ~ 5 +- Optimized: one shot jobs (checkout + cache + install + run) should run ~ 10 seconds. - Rely on static binaries instead of expensive apt-get. - Super productive & fast boilerplate environment