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
17da2e2a
Commit
17da2e2a
authored
Jan 29, 2021
by
longpanda
Browse files
update CI build script
parent
de6eb548
Changes
5
Hide 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
...
@@ -5,6 +5,8 @@ on:
...
@@ -5,6 +5,8 @@ on:
branches
:
[
master
]
branches
:
[
master
]
pull_request
:
pull_request
:
branches
:
[
master
]
branches
:
[
master
]
workflow_dispatch
:
jobs
:
jobs
:
build
:
build
:
...
@@ -15,10 +17,14 @@ jobs:
...
@@ -15,10 +17,14 @@ jobs:
run
:
docker-compose up
run
:
docker-compose up
-
uses
:
actions/upload-artifact@v2
-
uses
:
actions/upload-artifact@v2
with
:
with
:
name
:
ventoy-windows
path
:
INSTALL/ventoy-*windows*
-
uses
:
actions/upload-artifact@v2
with
:
name
:
ventoy-linux
name
:
ventoy-linux
path
:
INSTALL/ventoy-*linux*
path
:
INSTALL/ventoy-*linux*
-
uses
:
actions/upload-artifact@v2
-
uses
:
actions/upload-artifact@v2
with
:
with
:
name
:
ventoy-
windows
name
:
ventoy-
livecd
path
:
INSTALL/ventoy-*
windows
*
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 \
...
@@ -5,13 +5,13 @@ RUN yum -y install \
mpfr.i686 mpfr-devel.i686 zlib.i686 rsync autogen autoconf automake libtool gettext
*
bison binutils
\
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-
*
\
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
\
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 \
CMD
cd /ventoy \
&& wget -P DOC/ https://www.fefe.de/dietlibc/dietlibc-0.34.tar.xz \
&& 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 -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 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 -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 -O ExFAT/libfuse-fuse-2.9.9.zip https://codeload.github.com/libfuse/libfuse/zip/fuse-2.9.9 \
&& 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
&& cd INSTALL && ls -la && sh all_in_one.sh CI
EDK2/build.sh
View file @
17da2e2a
...
@@ -38,7 +38,6 @@ rm -f $DST_PATH3
...
@@ -38,7 +38,6 @@ rm -f $DST_PATH3
source
./edksetup.sh
source
./edksetup.sh
if
[
"
$EDKARCH
"
=
"AARCH64"
]
;
then
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-
\
GCC48_AARCH64_PREFIX
=
aarch64-linux-gnu-
\
build
-p
MdeModulePkg/MdeModulePkg.dsc
-a
$EDKARCH
-b
RELEASE
-t
GCC48
build
-p
MdeModulePkg/MdeModulePkg.dsc
-a
$EDKARCH
-b
RELEASE
-t
GCC48
else
else
...
...
INSTALL/all_in_one.sh
View file @
17da2e2a
...
@@ -3,7 +3,10 @@
...
@@ -3,7 +3,10 @@
VTOY_PATH
=
$PWD
/..
VTOY_PATH
=
$PWD
/..
cd
$VTOY_PATH
/DOC
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
cd
$VTOY_PATH
/GRUB2
sh buildgrub.sh
||
exit
1
sh buildgrub.sh
||
exit
1
...
@@ -58,6 +61,12 @@ sh buildedk.sh || exit 1
...
@@ -58,6 +61,12 @@ sh buildedk.sh || exit 1
# sh build.sh
# sh build.sh
cd
$VTOY_PATH
/INSTALL
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
sh ventoy_pack.sh
||
exit
1
echo
-e
'\n============== SUCCESS ==================\n'
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