Skip to content

Commit

Permalink
Try to reduce disk size taken by the build
Browse files Browse the repository at this point in the history
  • Loading branch information
fallen authored and XavierRaynaud committed Mar 8, 2024
1 parent d54723a commit f83d10f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-kvx-buildroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: source last.refs && ./build-kvx-buildroot.sh
run: source last.refs && ./build-kvx-buildroot.sh DO_GIT_ARCHIVE
15 changes: 14 additions & 1 deletion build-kvx-buildroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
set -eu
unset PERL_MM_OPT

DO_GIT_ARCHIVE=$1

function git_clone() {
local repo=$1
local sha1=$2
local branch=$3

if [[ ! -z "${DO_GIT_ARCHIVE}" ]];
then
repo_name=${repo##*/}
rm -rf ${repo_name}
wget ${repo}/archive/${sha1}.zip
unzip ${sha1}.zip
rm ${sha1}.zip
mv ${repo_name}-${sha1} ${repo_name}
return
fi

if [[ "${branch}" == "-" ]];
then
branch=""
Expand Down Expand Up @@ -34,7 +47,7 @@ function git_clone() {
fi
}

git_clone https://github.com/kalray/buildroot.git "${SHA1_BUILDROOT}" main
git_clone https://github.com/kalray/buildroot "${SHA1_BUILDROOT}" main
git_clone https://github.com/kalray/linux_coolidge "${SHA1_LINUX}" main
git_clone https://github.com/kalray/uclibc-ng "${SHA1_UCLIBC}" main
git_clone https://github.com/kalray/musl "${SHA1_MUSL}" main
Expand Down

0 comments on commit f83d10f

Please sign in to comment.