add mtool
This commit is contained in:
parent
9abb7ef434
commit
6a3724fb28
@ -6,6 +6,8 @@ NC='\033[0m' # No Color
|
|||||||
#sudo apt-get install python
|
#sudo apt-get install python
|
||||||
#sudo apt-get install wiggle
|
#sudo apt-get install wiggle
|
||||||
sudo apt-get install lftp
|
sudo apt-get install lftp
|
||||||
|
|
||||||
|
# removes these because they are in error with those installed by install-build-deps-android.sh
|
||||||
sudo apt-get remove --auto-remove php7.4 php7.4-cgi libapache2-mod-php7.4 php7.4-common
|
sudo apt-get remove --auto-remove php7.4 php7.4-cgi libapache2-mod-php7.4 php7.4-common
|
||||||
sudo apt autoremove
|
sudo apt autoremove
|
||||||
|
|
||||||
|
@ -28,6 +28,11 @@ export GOMA_ARBITRARY_TOOLCHAIN_SUPPORT=true
|
|||||||
$GITHUB_WORKSPACE/goma/goma_ctl.py ensure_stop
|
$GITHUB_WORKSPACE/goma/goma_ctl.py ensure_stop
|
||||||
$GITHUB_WORKSPACE/goma/goma_ctl.py ensure_start
|
$GITHUB_WORKSPACE/goma/goma_ctl.py ensure_start
|
||||||
|
|
||||||
|
# download mtool
|
||||||
|
echo -e ${RED} -------- download mtool ${NC}
|
||||||
|
git clone https://github.com/bromite/mtool
|
||||||
|
sudo apt-get install parallel
|
||||||
|
|
||||||
cd chromium/src
|
cd chromium/src
|
||||||
|
|
||||||
echo -e ${RED} -------- gn gen ${NC}
|
echo -e ${RED} -------- gn gen ${NC}
|
||||||
@ -42,13 +47,18 @@ if [[ OK -eq 1 ]]; then
|
|||||||
|
|
||||||
tar xf out.x86.$GITHUB_SHA.tar.gz
|
tar xf out.x86.$GITHUB_SHA.tar.gz
|
||||||
|
|
||||||
# TODO add mtool restore
|
test -f out/x86/.mtool && cp out/x86/.mtool .mtool && $GITHUB_WORKSPACE/mtool/chromium/mtime.sh --restore
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${GOMAJOBS}" ]]; then
|
||||||
|
GOMAJOBS=40
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e ${RED} -------- start build ${NC}
|
echo -e ${RED} -------- start build ${NC}
|
||||||
autoninja -j 40 -C out/x86 chrome_public_apk
|
autoninja -j $GOMAJOBS -C out/x86 chrome_public_apk
|
||||||
|
|
||||||
# TODO add mtool backup
|
$GITHUB_WORKSPACE/mtool/chromium/mtime.sh --backup
|
||||||
|
cp .mtool out/x86/
|
||||||
|
|
||||||
echo -e ${RED} -------- tar out ${NC}
|
echo -e ${RED} -------- tar out ${NC}
|
||||||
tar -czf out.x86.$GITHUB_SHA.tar.gz ./out
|
tar -czf out.x86.$GITHUB_SHA.tar.gz ./out
|
||||||
|
Loading…
Reference in New Issue
Block a user