mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
commit
24878a6e5d
52
.github/workflows/main.yml
vendored
52
.github/workflows/main.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
cp -Ru files/* .buildroot
|
cp -Ru files/* .buildroot
|
||||||
cd .buildroot
|
cd .buildroot
|
||||||
echo "Generating default config"
|
echo "Generating default config"
|
||||||
make arpl_defconfig
|
make BR2_EXTERNAL=../external arpl_defconfig
|
||||||
echo "First make"
|
echo "First make"
|
||||||
make BR2_EXTERNAL=../external
|
make BR2_EXTERNAL=../external
|
||||||
|
|
||||||
@ -54,32 +54,32 @@ jobs:
|
|||||||
rm -rf .buildroot/board/arpl/p1
|
rm -rf .buildroot/board/arpl/p1
|
||||||
rm -rf .buildroot/board/arpl/p3
|
rm -rf .buildroot/board/arpl/p3
|
||||||
# Get latest LKMs
|
# Get latest LKMs
|
||||||
echo "Getting latest LKMs"
|
# echo "Getting latest LKMs"
|
||||||
TAG=`curl -s https://api.github.com/repos/fbelavenuto/redpill-lkm/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}'`
|
# TAG=`curl -s https://api.github.com/repos/fbelavenuto/redpill-lkm/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}'`
|
||||||
curl -L "https://github.com/fbelavenuto/redpill-lkm/releases/download/${TAG}/rp-lkms.zip" -o /tmp/rp-lkms.zip
|
# curl -L "https://github.com/fbelavenuto/redpill-lkm/releases/download/${TAG}/rp-lkms.zip" -o /tmp/rp-lkms.zip
|
||||||
rm -rf files/board/arpl/p3/lkms/*
|
# rm -rf files/board/arpl/p3/lkms/*
|
||||||
unzip /tmp/rp-lkms.zip -d files/board/arpl/p3/lkms
|
# unzip /tmp/rp-lkms.zip -d files/board/arpl/p3/lkms
|
||||||
# Get latest addons and install its
|
# # Get latest addons and install its
|
||||||
echo "Getting latest Addons"
|
# echo "Getting latest Addons"
|
||||||
TAG=`curl -s https://api.github.com/repos/fbelavenuto/arpl-addons/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}'`
|
# TAG=`curl -s https://api.github.com/repos/fbelavenuto/arpl-addons/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}'`
|
||||||
curl -L "https://github.com/fbelavenuto/arpl-addons/releases/download/${TAG}/addons.zip" -o /tmp/addons.zip
|
# curl -L "https://github.com/fbelavenuto/arpl-addons/releases/download/${TAG}/addons.zip" -o /tmp/addons.zip
|
||||||
mkdir -p /tmp/addons
|
# mkdir -p /tmp/addons
|
||||||
unzip /tmp/addons.zip -d /tmp/addons
|
# unzip /tmp/addons.zip -d /tmp/addons
|
||||||
DEST_PATH="files/board/arpl/p3/addons"
|
# DEST_PATH="files/board/arpl/p3/addons"
|
||||||
echo "Installing addons to ${DEST_PATH}"
|
# echo "Installing addons to ${DEST_PATH}"
|
||||||
for PKG in `ls /tmp/addons/*.addon`; do
|
# for PKG in `ls /tmp/addons/*.addon`; do
|
||||||
ADDON=`basename ${PKG} | sed 's|.addon||'`
|
# ADDON=`basename ${PKG} | sed 's|.addon||'`
|
||||||
mkdir -p "${DEST_PATH}/${ADDON}"
|
# mkdir -p "${DEST_PATH}/${ADDON}"
|
||||||
echo "Extracting ${PKG} to ${DEST_PATH}/${ADDON}"
|
# echo "Extracting ${PKG} to ${DEST_PATH}/${ADDON}"
|
||||||
tar xaf "${PKG}" -C "${DEST_PATH}/${ADDON}"
|
# tar xaf "${PKG}" -C "${DEST_PATH}/${ADDON}"
|
||||||
done
|
# done
|
||||||
# Copy files
|
# Copy files
|
||||||
echo "Copying files"
|
echo "Copying files"
|
||||||
sed 's/^ARPL_VERSION=.*/ARPL_VERSION="'${VERSION}'"/' -i files/board/arpl/overlayfs/opt/arpl/include/consts.sh
|
sed 's/^ARPL_VERSION=.*/ARPL_VERSION="'${VERSION}'"/' -i files/board/arpl/overlayfs/opt/arpl/include/consts.sh
|
||||||
cp -Ru files/* .buildroot/
|
cp -Ru files/* .buildroot/
|
||||||
cd .buildroot
|
cd .buildroot
|
||||||
echo "Generating default config"
|
echo "Generating default config"
|
||||||
make arpl_defconfig
|
make BR2_EXTERNAL=../external arpl_defconfig
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "Building..."
|
echo "Building..."
|
||||||
make BR2_EXTERNAL=../external
|
make BR2_EXTERNAL=../external
|
||||||
@ -93,6 +93,16 @@ jobs:
|
|||||||
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
|
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
|
||||||
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl.vmdk
|
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl.vmdk
|
||||||
|
|
||||||
|
# Upload artifact
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Images
|
||||||
|
path: |
|
||||||
|
arpl.img
|
||||||
|
arpl.vmdk
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
# Publish a release if is a tag
|
# Publish a release if is a tag
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
@ -14,7 +14,7 @@ function compile-module {
|
|||||||
fi
|
fi
|
||||||
done </opt/platforms
|
done </opt/platforms
|
||||||
if [ $VALID -eq 0 ]; then
|
if [ $VALID -eq 0 ]; then
|
||||||
echo "Platform ${PLATFORM} not found."
|
echo "Platform ${1} not found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Compiling module for ${PLATFORM}-${KVER}..."
|
echo "Compiling module for ${PLATFORM}-${KVER}..."
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
ARPL_VERSION="0.3-alpha2"
|
ARPL_VERSION="0.3-alpha3"
|
||||||
|
|
||||||
# Define paths
|
# Define paths
|
||||||
TMP_PATH="/tmp"
|
TMP_PATH="/tmp"
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -66,7 +66,7 @@ cp -Ru files/* .buildroot/
|
|||||||
|
|
||||||
cd .buildroot
|
cd .buildroot
|
||||||
echo "Generating default config"
|
echo "Generating default config"
|
||||||
make arpl_defconfig
|
make BR2_EXTERNAL=../external arpl_defconfig
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "Building... Drink a coffee and wait!"
|
echo "Building... Drink a coffee and wait!"
|
||||||
make BR2_EXTERNAL=../external
|
make BR2_EXTERNAL=../external
|
||||||
|
Loading…
x
Reference in New Issue
Block a user