mirror of
https://github.com/AuxXxilium/arc.git
synced 2025-02-21 22:18:31 +07:00
parent
78417d5992
commit
cbd30c7c8f
2
.github/workflows/autobuild.yml
vendored
2
.github/workflows/autobuild.yml
vendored
@ -61,7 +61,7 @@ jobs:
|
|||||||
getLKMs "files/p3/lkms"
|
getLKMs "files/p3/lkms"
|
||||||
getAddons "files/p3/addons"
|
getAddons "files/p3/addons"
|
||||||
getModules "files/p3/modules"
|
getModules "files/p3/modules"
|
||||||
getConfigs "files/p3/configs" "${{ secrets.ACTION }}"
|
getConfigs "files/p3/configs"
|
||||||
getPatches "files/p3/patches"
|
getPatches "files/p3/patches"
|
||||||
|
|
||||||
echo "OK"
|
echo "OK"
|
||||||
|
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -121,19 +121,19 @@ jobs:
|
|||||||
|
|
||||||
getExtractor "files/p3/extractor"
|
getExtractor "files/p3/extractor"
|
||||||
LKMTAG="${{ inputs.lkm_version }}"
|
LKMTAG="${{ inputs.lkm_version }}"
|
||||||
getLKMs "files/p3/lkms"
|
getLKMs "files/p3/lkms" ${{ inputs.prerelease }}
|
||||||
echo "LKMTAG=${TAG}" >> $GITHUB_ENV
|
echo "LKMTAG=${TAG}" >> $GITHUB_ENV
|
||||||
ADDONSTAG="${{ inputs.addons_version }}"
|
ADDONSTAG="${{ inputs.addons_version }}"
|
||||||
getAddons "files/p3/addons"
|
getAddons "files/p3/addons" ${{ inputs.prerelease }}
|
||||||
echo "ADDONSTAG=${TAG}" >> $GITHUB_ENV
|
echo "ADDONSTAG=${TAG}" >> $GITHUB_ENV
|
||||||
MODULESTAG="${{ inputs.modules_version }}"
|
MODULESTAG="${{ inputs.modules_version }}"
|
||||||
getModules "files/p3/modules"
|
getModules "files/p3/modules" ${{ inputs.prerelease }}
|
||||||
echo "MODULESTAG=${TAG}" >> $GITHUB_ENV
|
echo "MODULESTAG=${TAG}" >> $GITHUB_ENV
|
||||||
CONFIGSTAG="${{ inputs.configs_version }}"
|
CONFIGSTAG="${{ inputs.configs_version }}"
|
||||||
getConfigs "files/p3/configs" "${{ secrets.ACTION }}"
|
getConfigs "files/p3/configs" ${{ inputs.prerelease }}
|
||||||
echo "CONFIGSTAG=${TAG}" >> $GITHUB_ENV
|
echo "CONFIGSTAG=${TAG}" >> $GITHUB_ENV
|
||||||
PATCHESTAG="${{ inputs.patches_version }}"
|
PATCHESTAG="${{ inputs.patches_version }}"
|
||||||
getPatches "files/p3/patches"
|
getPatches "files/p3/patches" ${{ inputs.prerelease }}
|
||||||
echo "PATCHESTAG=${TAG}" >> $GITHUB_ENV
|
echo "PATCHESTAG=${TAG}" >> $GITHUB_ENV
|
||||||
|
|
||||||
echo "OK"
|
echo "OK"
|
||||||
|
@ -8,15 +8,12 @@ set -e
|
|||||||
sudo git clean -fdx
|
sudo git clean -fdx
|
||||||
sudo git pull
|
sudo git pull
|
||||||
|
|
||||||
# Get Github Key
|
|
||||||
KEY="$(cat ../key)"
|
|
||||||
|
|
||||||
# Get extractor, LKM, addons and Modules
|
# Get extractor, LKM, addons and Modules
|
||||||
getExtractor "files/p3/extractor"
|
getExtractor "files/p3/extractor"
|
||||||
getLKMs "files/p3/lkms"
|
getLKMs "files/p3/lkms"
|
||||||
getAddons "files/p3/addons"
|
getAddons "files/p3/addons"
|
||||||
getModules "files/p3/modules"
|
getModules "files/p3/modules"
|
||||||
getConfigs "files/p3/configs" "${KEY}"
|
getConfigs "files/p3/configs"
|
||||||
getPatches "files/p3/patches"
|
getPatches "files/p3/patches"
|
||||||
|
|
||||||
IMAGE_FILE="arc.img"
|
IMAGE_FILE="arc.img"
|
||||||
|
@ -136,14 +136,13 @@ function getConfigs() {
|
|||||||
echo "Getting Configs begin"
|
echo "Getting Configs begin"
|
||||||
local DEST_PATH="${1:-configs}"
|
local DEST_PATH="${1:-configs}"
|
||||||
local CACHE_FILE="/tmp/configs.zip"
|
local CACHE_FILE="/tmp/configs.zip"
|
||||||
local KEY="${2:-${{ secrets.ACTION }}}"
|
|
||||||
rm -f "${CACHE_FILE}"
|
rm -f "${CACHE_FILE}"
|
||||||
if [ -n "${CONFIGSTAG}" ]; then
|
if [ -n "${CONFIGSTAG}" ]; then
|
||||||
TAG="${CONFIGSTAG}"
|
TAG="${CONFIGSTAG}"
|
||||||
else
|
else
|
||||||
TAG="$(curl -s https://oauth2:${KEY}@api.github.com/repos/AuxXxilium/arc-configs/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')"
|
TAG="$(curl -s https://api.github.com/repos/AuxXxilium/arc-configs/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')"
|
||||||
fi
|
fi
|
||||||
STATUS=$(curl -w "%{http_code}" -L "https://oauth2:${KEY}@github.com/AuxXxilium/arc-configs/releases/download/${TAG}/configs.zip" -o "${CACHE_FILE}")
|
STATUS=$(curl -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-configs/releases/download/${TAG}/configs.zip" -o "${CACHE_FILE}")
|
||||||
echo "TAG=${TAG}; Status=${STATUS}"
|
echo "TAG=${TAG}; Status=${STATUS}"
|
||||||
[ ${STATUS} -ne 200 ] && exit 1
|
[ ${STATUS} -ne 200 ] && exit 1
|
||||||
# Unzip Modules
|
# Unzip Modules
|
||||||
|
Loading…
Reference in New Issue
Block a user