Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
17da2e2a
Commit
17da2e2a
authored
Jan 29, 2021
by
longpanda
Browse files
update CI build script
parent
de6eb548
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
9 deletions
+31
-9
.github/workflows/ci.yml
.github/workflows/ci.yml
+8
-2
DOC/prepare_env.sh
DOC/prepare_env.sh
+8
-0
Dockerfile
Dockerfile
+5
-5
EDK2/build.sh
EDK2/build.sh
+0
-1
INSTALL/all_in_one.sh
INSTALL/all_in_one.sh
+10
-1
No files found.
.github/workflows/ci.yml
View file @
17da2e2a
...
...
@@ -6,6 +6,8 @@ on:
pull_request
:
branches
:
[
master
]
workflow_dispatch
:
jobs
:
build
:
runs-on
:
ubuntu-latest
...
...
@@ -13,12 +15,16 @@ jobs:
-
uses
:
actions/checkout@v2
-
name
:
Run docker-compose up
run
:
docker-compose up
-
uses
:
actions/upload-artifact@v2
with
:
name
:
ventoy-windows
path
:
INSTALL/ventoy-*windows*
-
uses
:
actions/upload-artifact@v2
with
:
name
:
ventoy-linux
path
:
INSTALL/ventoy-*linux*
-
uses
:
actions/upload-artifact@v2
with
:
name
:
ventoy-
windows
path
:
INSTALL/ventoy-*
windows
*
name
:
ventoy-
livecd
path
:
INSTALL/ventoy-*
livecd
*
DOC/prepare_env.sh
0 → 100644
View file @
17da2e2a
#!/bin/bash
#[ -d /opt/diet64 ] || sh ./installdietlibc.sh
[
-d
/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu
]
||
tar
xf /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
-C
/opt
[
-d
/opt/aarch64--uclibc--stable-2020.08-1
]
||
tar
xf /opt/aarch64--uclibc--stable-2020.08-1.tar.bz2
-C
/opt
Dockerfile
View file @
17da2e2a
...
...
@@ -5,13 +5,13 @@ RUN yum -y install \
mpfr.i686 mpfr-devel.i686 zlib.i686 rsync autogen autoconf automake libtool gettext
*
bison binutils
\
flex device-mapper-devel SDL libpciaccess libusb freetype freetype-devel gnu-free-
*
qemu-
*
virt-
*
\
libvirt
*
vte
*
NetworkManager-bluetooth brlapi fuse-devel dejavu
*
gnu-efi
*
pesign shim
\
iscsi-initiator-utils grub2-tools zip nasm acpica-tools glibc-static zlib-static
iscsi-initiator-utils grub2-tools zip nasm acpica-tools glibc-static zlib-static
xorriso
CMD
cd /ventoy \
&& wget -P DOC/ https://www.fefe.de/dietlibc/dietlibc-0.34.tar.xz \
&& wget -P DOC/ https://musl.libc.org/releases/musl-1.2.1.tar.gz \
&& wget -P GRUB2/ https://ftp.gnu.org/gnu/grub/grub-2.04.tar.xz \
&& wget -O EDK2/edk2-edk2-stable201911.zip https://codeload.github.com/tianocore/edk2/zip/edk2-stable201911 \
&& wget -O ExFAT/exfat-1.3.0.zip https://codeload.github.com/relan/exfat/zip/v1.3.0 \
&& wget -O ExFAT/libfuse-fuse-2.9.9.zip https://codeload.github.com/libfuse/libfuse/zip/fuse-2.9.9 \
&& cd INSTALL && ls -la && sh all_in_one.sh
&& wget -P /opt/ https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz \
&& wget -P /opt/ https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--uclibc--stable-2020.08-1.tar.bz2 \
&& cd INSTALL && ls -la && sh all_in_one.sh CI
EDK2/build.sh
View file @
17da2e2a
...
...
@@ -38,7 +38,6 @@ rm -f $DST_PATH3
source
./edksetup.sh
if
[
"
$EDKARCH
"
=
"AARCH64"
]
;
then
PATH
=
$PATH
:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin
\
GCC48_AARCH64_PREFIX
=
aarch64-linux-gnu-
\
build
-p
MdeModulePkg/MdeModulePkg.dsc
-a
$EDKARCH
-b
RELEASE
-t
GCC48
else
...
...
INSTALL/all_in_one.sh
View file @
17da2e2a
...
...
@@ -3,7 +3,10 @@
VTOY_PATH
=
$PWD
/..
cd
$VTOY_PATH
/DOC
sh installdietlibc.sh
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
cd
$VTOY_PATH
/GRUB2
sh buildgrub.sh
||
exit
1
...
...
@@ -58,6 +61,12 @@ sh buildedk.sh || exit 1
# sh build.sh
cd
$VTOY_PATH
/INSTALL
if
[
"
$1
"
=
"CI"
]
;
then
Ver
=
$(
date
+%m%d%H%M
)
sed
"s/VENTOY_VERSION=.*/VENTOY_VERSION=
$Ver
/"
-i
./grub/grub.cfg
fi
sh ventoy_pack.sh
||
exit
1
echo
-e
'\n============== SUCCESS ==================\n'
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