]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
update CI build script
authorlongpanda <admin@ventoy.net>
Fri, 29 Jan 2021 05:02:51 +0000 (13:02 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 29 Jan 2021 05:02:51 +0000 (13:02 +0800)
.github/workflows/ci.yml
DOC/prepare_env.sh [new file with mode: 0644]
Dockerfile
EDK2/build.sh
INSTALL/all_in_one.sh

index 1a7da188cf59b13ea156ba61ac43fd30373bb0fc..aa09d624549dd5bb315bfc4353d6496e240e8bc4 100644 (file)
@@ -5,6 +5,8 @@ on:
     branches: [ master ]
   pull_request:
     branches: [ master ]
+  
+  workflow_dispatch:
 
 jobs:
   build:
@@ -15,10 +17,14 @@ jobs:
       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*
 
diff --git a/DOC/prepare_env.sh b/DOC/prepare_env.sh
new file mode 100644 (file)
index 0000000..1a9e869
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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
+
index 06221bc0f1c0398680296373776deb3528464c6f..e6b7ef48b82bac2fe8ff22b818783f71494f3e4a 100644 (file)
@@ -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
index 6322764305f48196eb37a32f87187e4c5a1d7dbc..7e659c54f764d9f63249ebd0f5fe4f326a526171 100644 (file)
@@ -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
index a90d967c5cc068f565e3eb4890f114b5fb97097f..e828d31310028e40d85212b341d402b5f8c0010e 100644 (file)
@@ -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'