mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:49:52 +07:00
build: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
519026cf2d
commit
3d9c6043bf
100
.github/workflows/autobuild.yml
vendored
100
.github/workflows/autobuild.yml
vendored
@ -42,18 +42,11 @@ jobs:
|
||||
- name: Calculate Version
|
||||
run: |
|
||||
# Calculate Version
|
||||
VERSION="`date +'%y.%-m'`.dev"
|
||||
|
||||
VERSION="`date +'%y.%m'`.dev"
|
||||
|
||||
echo "Version: ${VERSION}"
|
||||
echo "VERSION=${VERSION}" >> $GITHUB_ENV
|
||||
|
||||
if [ -n "${VERSION}" ]; then
|
||||
# Modify Source File
|
||||
echo "${VERSION}" >VERSION
|
||||
echo "${VERSION}" >files/p1/ARC-VERSION
|
||||
sed 's/^ARC_VERSION=.*/ARC_VERSION="'${VERSION}'"/' -i files/initrd/opt/arc/include/consts.sh
|
||||
fi
|
||||
|
||||
# Get extractor, LKM, Addons, Modules, Theme and Configs
|
||||
- name: Get extractor, LKM, Addons, Modules, Theme and Configs
|
||||
run: |
|
||||
@ -73,6 +66,8 @@ jobs:
|
||||
echo "CUSTOMTAG=${TAG}" >> $GITHUB_ENV
|
||||
getTheme "files/p1/boot/grub"
|
||||
echo "THEMETAG=${TAG}" >> $GITHUB_ENV
|
||||
getBuildrootx "latest" "brx"
|
||||
echo "BRX_VERSION=${TAG}" >> $GITHUB_ENV
|
||||
getBuildroots "latest" "brs"
|
||||
echo "BRS_VERSION=${TAG}" >> $GITHUB_ENV
|
||||
getOffline "files/p3/configs"
|
||||
@ -81,6 +76,64 @@ jobs:
|
||||
echo "OK"
|
||||
|
||||
# Build incremental
|
||||
- name: Build Image X
|
||||
run: |
|
||||
. scripts/func.sh
|
||||
|
||||
if [ -n "${VERSION}" ]; then
|
||||
# Modify Source File
|
||||
echo "${VERSION}" >VERSION
|
||||
echo "${VERSION}" >files/p1/ARC-VERSION
|
||||
echo "next" >files/p1/ARC-BRANCH
|
||||
sed 's/^ARC_VERSION=.*/ARC_VERSION="'${VERSION}'"/' -i files/initrd/opt/arc/include/consts.sh
|
||||
fi
|
||||
|
||||
echo "Create Arc Image"
|
||||
IMAGE_FILE="arc-next.img"
|
||||
gzip -dc "files/initrd/opt/arc/grub.img.gz" >"${IMAGE_FILE}"
|
||||
fdisk -l "${IMAGE_FILE}"
|
||||
|
||||
LOOPX=$(sudo losetup -f)
|
||||
sudo losetup -P "${LOOPX}" "${IMAGE_FILE}"
|
||||
|
||||
echo "Mounting Image File"
|
||||
mkdir -p "/tmp/p1"
|
||||
mkdir -p "/tmp/p3"
|
||||
sudo mount ${LOOPX}p1 "/tmp/p1"
|
||||
sudo mount ${LOOPX}p3 "/tmp/p3"
|
||||
|
||||
[ ! -f "brx/bzImage-arc" ] || [ ! -f "brx/initrd-arc" ] && return 1
|
||||
|
||||
echo "Repack initrd"
|
||||
cp -f "brx/bzImage-arc" "files/p3/bzImage-arc"
|
||||
repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc"
|
||||
|
||||
echo "Copying files"
|
||||
sudo cp -Rf "files/p1/"* "/tmp/p1"
|
||||
sudo cp -Rf "files/p3/"* "/tmp/p3"
|
||||
sync
|
||||
|
||||
echo "Unmount image file"
|
||||
sudo umount "/tmp/p1"
|
||||
sudo umount "/tmp/p3"
|
||||
rmdir "/tmp/p1"
|
||||
rmdir "/tmp/p3"
|
||||
|
||||
sudo losetup --detach ${LOOPX}
|
||||
|
||||
echo "Image Converter"
|
||||
qemu-img convert ${IMAGE_FILE} -O vmdk -o adapter_type=lsilogic arc-next-dyn.vmdk
|
||||
qemu-img convert ${IMAGE_FILE} -O vmdk -o adapter_type=lsilogic,subformat=monolithicFlat arc-next.vmdk
|
||||
qemu-img convert ${IMAGE_FILE} -O vhdx -o subformat=dynamic arc-next.vhdx
|
||||
|
||||
echo "Create Arc ova"
|
||||
convertova "${IMAGE_FILE}" "arc-next.ova"
|
||||
|
||||
# Zip update and generate checksum
|
||||
zip -9j update-next.zip "files/p3/bzImage-arc" "files/p3/initrd-arc" "files/p1/ARC-VERSION" "files/p1/boot/grub/grub.cfg"
|
||||
sha256sum update-next.zip >checksum-next.sha256
|
||||
|
||||
# Build incremental
|
||||
- name: Build Image S
|
||||
run: |
|
||||
. scripts/func.sh
|
||||
@ -89,6 +142,7 @@ jobs:
|
||||
# Modify Source File
|
||||
echo "${VERSION}" >VERSION
|
||||
echo "${VERSION}" >files/p1/ARC-VERSION
|
||||
echo "stable" >files/p1/ARC-BRANCH
|
||||
sed 's/^ARC_VERSION=.*/ARC_VERSION="'${VERSION}'"/' -i files/initrd/opt/arc/include/consts.sh
|
||||
fi
|
||||
|
||||
@ -128,7 +182,6 @@ jobs:
|
||||
echo "Image Converter"
|
||||
qemu-img convert ${IMAGE_FILE} -O vmdk -o adapter_type=lsilogic arc-dyn.vmdk
|
||||
qemu-img convert ${IMAGE_FILE} -O vmdk -o adapter_type=lsilogic,subformat=monolithicFlat arc.vmdk
|
||||
qemu-img convert ${IMAGE_FILE} -O vhdx -o subformat=dynamic arc.vhdx
|
||||
|
||||
echo "Create Arc ova"
|
||||
convertova "${IMAGE_FILE}" "arc.ova"
|
||||
@ -142,12 +195,18 @@ jobs:
|
||||
run: |
|
||||
if [ -n "${{ env.VERSION }}" ]; then
|
||||
# XBase
|
||||
zip -9 "arc-${{ env.VERSION }}-next.img.zip" arc-next.img
|
||||
zip -9 "arc-${{ env.VERSION }}-next.vmdk-dyn.zip" arc-next-dyn.vmdk
|
||||
zip -9 "arc-${{ env.VERSION }}-next.vmdk-flat.zip" arc-next.vmdk arc-next-flat.vmdk
|
||||
zip -9 "arc-${{ env.VERSION }}-next.vhdx.zip" arc-next.vhdx
|
||||
zip -9 "arc-${{ env.VERSION }}-next.ova.zip" arc-next.ova
|
||||
# SBase
|
||||
zip -9 "arc-${{ env.VERSION }}.img.zip" arc.img
|
||||
zip -9 "arc-${{ env.VERSION }}.vmdk-dyn.zip" arc-dyn.vmdk
|
||||
zip -9 "arc-${{ env.VERSION }}.vmdk-flat.zip" arc.vmdk arc-flat.vmdk
|
||||
zip -9 "arc-${{ env.VERSION }}.vhdx.zip" arc.vhdx
|
||||
zip -9 "arc-${{ env.VERSION }}.ova.zip" arc.ova
|
||||
fi
|
||||
echo "24.01.01" >check.update
|
||||
|
||||
# Publish a release if is a tag
|
||||
- name: Release
|
||||
@ -156,17 +215,16 @@ jobs:
|
||||
with:
|
||||
tag: ${{ env.VERSION }}
|
||||
prerelease: true
|
||||
makeLatest: ${{ inputs.latest }}
|
||||
makeLatest: false
|
||||
allowUpdates: true
|
||||
body: |
|
||||
### Information:
|
||||
Notice: ${{ inputs.notice }}
|
||||
Release: ${{ env.BUILD_TIME }}
|
||||
Notice: Development Build
|
||||
|
||||
- Full Changelog and Arc Patch (Decryption Key) can be found in my Discord.
|
||||
- Version:
|
||||
- without "-s": Latest Buildroot System (More Hardware supported / Hyper-V and XEN (still in testing))
|
||||
- with "-s": Stable Buildroot System (Less Hardware supported / faster Boot)
|
||||
- arc: Stable Buildroot System (Less Hardware supported / faster Boot)
|
||||
- arc-next: Latest Buildroot System (More Hardware supported (still in testing))
|
||||
- Full Changelog and Arc Patch (Decryption Key) are available in my Discord.
|
||||
|
||||
### Versions:
|
||||
Addons: ${{ env.ADDONSTAG }}
|
||||
@ -176,8 +234,12 @@ jobs:
|
||||
Custom: ${{ env.CUSTOMTAG }}
|
||||
Theme: ${{ env.THEMETAG }}
|
||||
LKM: ${{ env.LKMTAG }}
|
||||
Buildroot: ${{ env.BR_SVERSION }}
|
||||
Buildroot: ${{ env.BRS_VERSION }} | Buildroot Next: ${{ env.BRX_VERSION }}
|
||||
Release: ${{ env.BUILD_TIME }}
|
||||
artifacts: |
|
||||
arc-*.zip
|
||||
update.zip
|
||||
checksum.sha256
|
||||
update-next.zip
|
||||
checksum.sha256
|
||||
checksum-next.sha256
|
||||
check.update
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -262,7 +262,7 @@ jobs:
|
||||
- Version:
|
||||
- arc: Stable Buildroot System (Less Hardware supported / faster Boot)
|
||||
- arc-next: Latest Buildroot System (More Hardware supported (still in testing))
|
||||
- Full Changelog and Arc Patch (Decryption Key) can be found in my Discord.
|
||||
- Full Changelog and Arc Patch (Decryption Key) are available in my Discord.
|
||||
|
||||
### Versions:
|
||||
Addons: ${{ env.ADDONSTAG }}
|
||||
|
Loading…
Reference in New Issue
Block a user