Skip to content

Commit

Permalink
add .tar.zst sdk support
Browse files Browse the repository at this point in the history
  • Loading branch information
pexcn committed May 24, 2024
1 parent ab6f862 commit 867bd0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
SDK_URL:
- https://downloads.openwrt.org/releases/21.02.5/targets/x86/64/openwrt-sdk-21.02.5-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
- https://github.com/openwrt-ipq60xx/ci/releases/download/main/openwrt-sdk-qualcommax-ipq60xx_gcc-12.3.0_musl.Linux-x86_64.tar.xz
- https://github.com/openwrt-ipq60xx/ci/releases/download/main/openwrt-sdk-qualcommax-ipq60xx_gcc-13.2.0_musl.Linux-x86_64.tar.zst

steps:
- name: Checkout sources
Expand Down
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/sh

download_sdk() {
curl -sSL "$SDK_URL" | tar Jxf -
if [ -z "${SDK_URL##*.tar.zst}" ]; then
curl -sSL "$SDK_URL" | tar --zstd -xf -
else
curl -sSL "$SDK_URL" | tar Jxf -
fi
mv openwrt-sdk-* openwrt-sdk
}

Expand Down

0 comments on commit 867bd0d

Please sign in to comment.