mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Update main.yml
This commit is contained in:
parent
9ce8f6deb7
commit
994c0e21f1
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -36,12 +36,14 @@ jobs:
|
|||||||
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)}'`
|
||||||
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/redpill-lkm/releases/download/${TAG}/rp-lkms.zip" -o /tmp/rp-lkms.zip`
|
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/redpill-lkm/releases/download/${TAG}/rp-lkms.zip" -o /tmp/rp-lkms.zip`
|
||||||
|
echo "Status=${STATUS}"
|
||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
|
|
||||||
# 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)}'`
|
||||||
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-addons/releases/download/${TAG}/addons.zip" -o /tmp/addons.zip`
|
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-addons/releases/download/${TAG}/addons.zip" -o /tmp/addons.zip`
|
||||||
|
echo "Status=${STATUS}"
|
||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
|
|
||||||
# Get latest modules
|
# Get latest modules
|
||||||
@ -51,9 +53,11 @@ jobs:
|
|||||||
while read PLATFORM KVER; do
|
while read PLATFORM KVER; do
|
||||||
FILE="${PLATFORM}-${KVER}"
|
FILE="${PLATFORM}-${KVER}"
|
||||||
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-modules/releases/download/${TAG}/${FILE}.tgz" -o "${MODULES_DIR}/${FILE}.tgz"`
|
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-modules/releases/download/${TAG}/${FILE}.tgz" -o "${MODULES_DIR}/${FILE}.tgz"`
|
||||||
|
echo "Status=${STATUS}"
|
||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
done < PLATFORMS
|
done < PLATFORMS
|
||||||
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-modules/releases/download/${TAG}/firmware.tgz" -o "${MODULES_DIR}/firmware.tgz"`
|
STATUS=`curl -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl-modules/releases/download/${TAG}/firmware.tgz" -o "${MODULES_DIR}/firmware.tgz"`
|
||||||
|
echo "Status=${STATUS}"
|
||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
|
|
||||||
# Prepare buildroot for first make (for cache)
|
# Prepare buildroot for first make (for cache)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user