build: some fixes

This commit is contained in:
John Doe
2021-03-16 14:44:38 +08:00
parent d6a770fbb0
commit 951e753839

View File

@@ -57,6 +57,10 @@ jobs:
- name: Update feeds and packages
run: |
cd ~/lede
if [ -d 'feeds' ]; then
pushd feeds/package; git restore .; popd
pushd feeds/luci; git restore .; popd
fi
./scripts/feeds update -a
./scripts/feeds install -a
. $GITHUB_WORKSPACE/patches.sh
@@ -159,7 +163,7 @@ jobs:
export cache_path='github.com/repos/klever1988/sshactions/releases'
export cache_repo_id='39020554'
ret=$(curl -sH "$AUTH" "https://api.$cache_path/tags/cache")
echo $ret | jq -r '.assets[] | select(.name | contains ("'$DEVICE'")).id' | \
echo $ret | jq -r '.assets[] | select(.name | contains ("'$DEVICE'.img")).id' | \
xargs -n1 -i curl -X DELETE -H "$AUTH" "https://api.$cache_path/assets/{}"
zstdmt -c --adapt --long lede.img | parallel --wc --block 1.99G --pipe \
'curl -s --data-binary @- -H "$AUTH" -H "Content-Type: application/octet-stream" https://uploads.$cache_path/$cache_repo_id/assets?name=lede.'$DEVICE'.img.zst.0{#} > /dev/null'