|
@@ -113,6 +113,7 @@ jobs:
|
|
|
-H "Authorization: Bearer ${{ secrets.REPO_TOKEN }}" \
|
|
|
-X POST -d '{ "query": "query {repository(owner: \"openwrt\", name: \"openwrt\") {refs(refPrefix: \"refs/tags/\", last: 4, orderBy: {field: TAG_COMMIT_DATE, direction: ASC}) {edges {node {name}}}}}"}' https://api.github.com/graphql) | jq -r '.data.repository.refs.edges[].node.name' | grep v21 | tail -n 1 | sed -e 's/v//')"
|
|
|
git clone $REPO_URL -b v$REPO_BRANCH openwrt
|
|
|
+ if [[ "${{ contains(github.event.action, 'sdk') }}" == "true" ]]; then
|
|
|
cd openwrt
|
|
|
if [[ ${{matrix.target}} == "x86_64" ]]; then
|
|
|
curl -fL -m 60 -o sdk.tar.xz https://downloads.openwrt.org/releases/$REPO_BRANCH/targets/x86/64/openwrt-sdk-$REPO_BRANCH-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz || curl -fL -m 60 -o sdk.tar.xz https://openwrt.tetaneutral.net/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
@@ -121,6 +122,7 @@ jobs:
|
|
|
elif [[ ${{matrix.target}} =~ "Rpi-4B" ]]; then
|
|
|
curl -fL -m 60 -o sdk.tar.xz https://downloads.openwrt.org/releases/$REPO_BRANCH/targets/bcm27xx/bcm2711/openwrt-sdk-$REPO_BRANCH-bcm27xx-bcm2711_gcc-8.4.0_musl.Linux-x86_64.tar.xz || curl -fL -m 60 -o sdk.tar.xz https://openwrt.tetaneutral.net/releases/21.02-SNAPSHOT/targets/bcm27xx/bcm2711/openwrt-sdk-21.02-SNAPSHOT-bcm27xx-bcm2711_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
|
fi
|
|
|
+ fi
|
|
|
echo "REPO_BRANCH=$REPO_BRANCH" >> $GITHUB_ENV
|
|
|
|
|
|
- name: Free up disk space
|