Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
39975dd1
Commit
39975dd1
authored
Apr 02, 2021
by
longpanda
Browse files
update CI script
parent
1a648d86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
INSTALL/all_in_one.sh
INSTALL/all_in_one.sh
+11
-8
INSTALL/docker_ci_build.sh
INSTALL/docker_ci_build.sh
+5
-0
No files found.
INSTALL/all_in_one.sh
View file @
39975dd1
...
...
@@ -2,26 +2,29 @@
VTOY_PATH
=
$PWD
/..
cilog
()
{
datestr
=
$(
date
+
"%Y/%m/%d %H:%M:%S"
)
echo
"
$datestr
$*
"
}
LOG
=
$VTOY_PATH
/DOC/build.log
[
-f
$LOG
]
&&
rm
-f
$LOG
cd
$VTOY_PATH
/DOC
echo
"prepare_env ..."
cilog
"prepare_env ..."
sh prepare_env.sh
export
PATH
=
$PATH
:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin:/opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/:/opt/mips64el-linux-musl-gcc730/bin/
echo
"build grub2 ..."
cilog
"build grub2 ..."
cd
$VTOY_PATH
/GRUB2
#sh buildgrub.sh >> $LOG 2>&1 || exit 1
sh buildgrub.sh
sh buildgrub.sh
>>
$LOG
2>&1
||
exit
1
echo
"build ipxe ..."
cilog
"build ipxe ..."
cd
$VTOY_PATH
/IPXE
sh buildipxe.sh
>>
$LOG
2>&1
||
exit
1
echo
"build edk2 ..."
cilog
"build edk2 ..."
cd
$VTOY_PATH
/EDK2
sh buildedk.sh
>>
$LOG
2>&1
||
exit
1
...
...
@@ -75,7 +78,7 @@ if [ "$1" = "CI" ]; then
sed
"s/VENTOY_VERSION=.*/VENTOY_VERSION=
\"
$Ver
\"
/"
-i
./grub/grub.cfg
fi
echo
"packing ventoy-
$Ver
..."
cilog
"packing ventoy-
$Ver
..."
sh ventoy_pack.sh
$1
>>
$LOG
2>&1
||
exit
1
echo
-e
'\n============== SUCCESS ==================\n'
INSTALL/docker_ci_build.sh
View file @
39975dd1
...
...
@@ -2,7 +2,9 @@
VTOY_PATH
=
$PWD
/..
date
+
"%Y/%m/%d %H:%M:%S"
echo
downloading envrionment ...
wget
-q
-P
$VTOY_PATH
/DOC/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/dietlibc-0.34.tar.xz
wget
-q
-P
$VTOY_PATH
/DOC/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/musl-1.2.1.tar.gz
wget
-q
-P
$VTOY_PATH
/GRUB2/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/grub-2.04.tar.xz
...
...
@@ -11,4 +13,7 @@ wget -q -P /opt/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/g
wget
-q
-P
/opt/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/aarch64--uclibc--stable-2020.08-1.tar.bz2
wget
-q
-P
/opt/ https://github.com/ventoy/vtoytoolchain/releases/download/1.0/mips-loongson-gcc7.3-2019.06-29-linux-gnu.tar.gz
date
+
"%Y/%m/%d %H:%M:%S"
echo
downloading envrionment finish...
sh all_in_one.sh CI
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment