mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-10 05:26:48 +03:00
[github] Update auto builder
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -134,28 +134,30 @@ jobs:
|
|||||||
#export PKG_VERSION=$(date --utc -d $DATE +%Y%m%d)
|
#export PKG_VERSION=$(date --utc -d $DATE +%Y%m%d)
|
||||||
#find $GITHUB_WORKSPACE/zapret-openwrt -type d -path '*/package/zapret' -exec cp -r {} ./package \;
|
#find $GITHUB_WORKSPACE/zapret-openwrt -type d -path '*/package/zapret' -exec cp -r {} ./package \;
|
||||||
cp -r $GITHUB_WORKSPACE/zapret-openwrt ./package/zapret-openwrt/
|
cp -r $GITHUB_WORKSPACE/zapret-openwrt ./package/zapret-openwrt/
|
||||||
|
|
||||||
mv feeds.conf.default feeds.conf
|
mv feeds.conf.default feeds.conf
|
||||||
sed -i -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' feeds.conf
|
sed -i -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' feeds.conf
|
||||||
sed -i -e 's|packages.*\.git|packages https://github.com/openwrt/packages.git|' feeds.conf
|
sed -i -e 's|packages.*\.git|packages https://github.com/openwrt/packages.git|' feeds.conf
|
||||||
sed -i -e 's|luci.*\.git|luci https://github.com/openwrt/luci.git|' feeds.conf
|
sed -i -e 's|luci.*\.git|luci https://github.com/openwrt/luci.git|' feeds.conf
|
||||||
|
|
||||||
./scripts/feeds update base packages luci
|
./scripts/feeds update base packages luci
|
||||||
./scripts/feeds install -a
|
./scripts/feeds install -a
|
||||||
|
|
||||||
make defconfig
|
make defconfig
|
||||||
|
|
||||||
echo "------------- .config BEG -------------------"
|
echo "------------- .config BEG -------------------"
|
||||||
cat .config
|
cat .config
|
||||||
echo "------------- .config END -------------------"
|
echo "------------- .config END -------------------"
|
||||||
|
|
||||||
PKGLIST=`echo package/zapret-openwrt/{zapret,zapret-tpws,zapret-mdig,zapret-ip2net,luci-app-zapret}/compile`
|
PKGLIST=`echo package/zapret-openwrt/{zapret,zapret-tpws,zapret-mdig,zapret-ip2net,luci-app-zapret}/compile`
|
||||||
make $PKGLIST V=s CONFIG_CCACHE=1 BUILD_LOG=1
|
make $PKGLIST V=s CONFIG_CCACHE=1 BUILD_LOG=1
|
||||||
|
|
||||||
find ./bin/packages/*/base -type f ! -regex ".*\(zapret\).*\.ipk$" -delete
|
find ./bin/packages/*/base -type f ! -regex ".*\(zapret\).*\.ipk$" -delete
|
||||||
echo "$SIGN_KEY" | base64 -d > key-build
|
|
||||||
|
|
||||||
|
#echo ">>>>>>> build a repository index to make the output directory usable as local OPKG source"
|
||||||
|
#ln -s `which usign` staging_dir/host/bin/usign
|
||||||
|
#echo "$SIGN_KEY" | base64 -d > key-build
|
||||||
#make package/index
|
#make package/index
|
||||||
|
|
||||||
tar -C ./bin/packages/*/base -cvf $GITHUB_WORKSPACE/ipk-$BRANCH-$ARCH.tar --transform "s|^\./|${BRANCH/openwrt-}/$ARCH/|" --show-transformed-names .
|
tar -C ./bin/packages/*/base -cvf $GITHUB_WORKSPACE/ipk-$BRANCH-$ARCH.tar --transform "s|^\./|${BRANCH/openwrt-}/$ARCH/|" --show-transformed-names .
|
||||||
./staging_dir/host/bin/ccache --max-size=10M --show-stats
|
./staging_dir/host/bin/ccache --max-size=10M --show-stats
|
||||||
|
|
||||||
@@ -214,9 +216,11 @@ jobs:
|
|||||||
uses: andelf/nightly-release@main
|
uses: andelf/nightly-release@main
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
BRANCH: ${{ matrix.branch }}
|
||||||
|
TAG: ${{ needs.check.outputs.tag }}
|
||||||
with:
|
with:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
tag_name: ${{ matrix.branch }}
|
tag_name: ${{ needs.check.outputs.tag }}-${{ matrix.branch }}
|
||||||
name: '${{ needs.check.outputs.tag }} for OpenWrt ${{ matrix.branch }}'
|
name: '${{ needs.check.outputs.tag }} for OpenWrt ${{ matrix.branch }}'
|
||||||
body: |
|
body: |
|
||||||
${{ needs.check.outputs.url }}: ${{ needs.check.outputs.message }}
|
${{ needs.check.outputs.url }}: ${{ needs.check.outputs.message }}
|
||||||
|
|||||||
Reference in New Issue
Block a user