mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
get-openwrt.sh
This commit is contained in:
parent
f07c5f1a02
commit
e2c45ef798
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -10,7 +10,7 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: src
|
working-directory: src
|
||||||
env:
|
env:
|
||||||
CACHE_EPOCH: 2
|
CACHE_EPOCH: 3
|
||||||
CCACHE_MAXSIZE: 200M
|
CCACHE_MAXSIZE: 200M
|
||||||
CCACHE_MAXFILES: 0
|
CCACHE_MAXFILES: 0
|
||||||
SCCACHE_CACHE_SIZE: 200M
|
SCCACHE_CACHE_SIZE: 200M
|
||||||
@ -492,7 +492,7 @@ jobs:
|
|||||||
openwrt_gcc_ver: '12.3.0'
|
openwrt_gcc_ver: '12.3.0'
|
||||||
env:
|
env:
|
||||||
EXTRA_FLAGS: target_cpu="${{ matrix.target_cpu }}" target_os="openwrt" ${{ matrix.extra }}
|
EXTRA_FLAGS: target_cpu="${{ matrix.target_cpu }}" target_os="openwrt" ${{ matrix.extra }}
|
||||||
OPENWRT_FLAGS: arch=${{ matrix.arch }} release=${{ matrix.openwrt_release || '21.02.0' }} gcc_ver=${{ matrix.openwrt_gcc_ver || '8.4.0' }} ${{ matrix.openwrt }}
|
OPENWRT_FLAGS: arch=${{ matrix.arch }} release=${{ matrix.openwrt_release || '18.06.0' }} gcc_ver=${{ matrix.openwrt_gcc_ver || '7.3.0' }} ${{ matrix.openwrt }}
|
||||||
BUNDLE: naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}
|
BUNDLE: naiveproxy-${{ github.event.release.tag_name }}-${{ github.job }}-${{ matrix.arch }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -22,10 +22,13 @@ else
|
|||||||
path_suffix=sdk
|
path_suffix=sdk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$subtarget" ]; then
|
if [ ! "$subtarget" ]; then
|
||||||
|
subtarget=generic
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$subtarget" != generic -o "$major" -ge 22 ]; then
|
||||||
SDK_PATH=openwrt-$path_suffix-$release-$target-${subtarget}_gcc-${gcc_ver}_${abi}.Linux-x86_64
|
SDK_PATH=openwrt-$path_suffix-$release-$target-${subtarget}_gcc-${gcc_ver}_${abi}.Linux-x86_64
|
||||||
else
|
else
|
||||||
subtarget='generic'
|
|
||||||
SDK_PATH=openwrt-$path_suffix-$release-${target}_gcc-${gcc_ver}_${abi}.Linux-x86_64
|
SDK_PATH=openwrt-$path_suffix-$release-${target}_gcc-${gcc_ver}_${abi}.Linux-x86_64
|
||||||
fi
|
fi
|
||||||
SDK_URL=https://downloads.openwrt.org/releases/$release/targets/$target/$subtarget/$SDK_PATH.tar.xz
|
SDK_URL=https://downloads.openwrt.org/releases/$release/targets/$target/$subtarget/$SDK_PATH.tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user