bpi-r3 v1.2-rc images on arm64 #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bpi-r3 v1.2-rc images on arm64 | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build BPI-R3 v1.2-rc Images | |
runs-on: ubuntu-24.04-arm | |
steps: | |
- name: Setup Ubuntu | |
run: | | |
sudo apt update | |
sudo apt install -y subversion build-essential gettext 2to3 python3-pyelftools python3-distutils-extra | |
- name: Setut Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.5' | |
cache: false | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
git clone https://github.com/openwrt/openwrt.git | |
cp -rf r3/* openwrt/ | |
cd openwrt | |
wget https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/18043.patch | |
git apply 18043.patch | |
wget https://github.com/mj22226/source/commit/64d9b0c254fa5ebdcbc1ffa941e16a783b776954.patch | |
git apply 64d9b0c254fa5ebdcbc1ffa941e16a783b776954.patch | |
wget https://github.com/mj22226/source/commit/5cd76700cd39422e1bc9576096b201df7020ad5a.patch | |
git apply 5cd76700cd39422e1bc9576096b201df7020ad5a.patch | |
wget https://github.com/mj22226/openwrt-arm64/releases/download/filogic-18.1.7/llvm-bpf-18.1.7.Linux-aarch64.tar.zst | |
tar -xvf llvm-bpf-18.1.7.Linux-aarch64.tar.zst | |
wget https://github.com/mj22226/openwrt/commit/4d4846f42fd7adccaf48b74e2b78ffb6ad65a0c3.patch | |
git apply 4d4846f42fd7adccaf48b74e2b78ffb6ad65a0c3.patch | |
git apply 0001-bpi-r31.patch | |
git apply 01-ip-addr.patch | |
./scripts/feeds update -a | |
./scripts/feeds install -a | |
cd feeds/luci | |
wget https://gist.githubusercontent.com/mj22226/363cefecd314e45b49d8eafff8473fcf/raw/f327d1fcae5513be3abbeea1c6696c1da845a635/01-diskman.patch | |
git apply 01-diskman.patch | |
cd - | |
cd feeds/packages | |
wget https://gist.githubusercontent.com/mj22226/351f11e66f08f06e37a985719a31ddb4/raw/b35ba7a3aac1949bd6bbeaad065a0a93dc3c34f0/01-cpu.patch | |
wget https://gist.githubusercontent.com/mj22226/b66f5c1bd5fc7e1cb3cf2c690b5dbd5a/raw/b955e726cbb0948d932c8d6143229ad604320149/20-lxc.patch | |
git apply 01-cpu.patch | |
git apply 20-lxc.patch | |
cd - | |
sed -i "13s/'1'/'0'/" feeds/packages/utils/dockerd/files/etc/config/dockerd | |
sed -i "4s/login/login -f root/" feeds/packages/utils/ttyd/files/ttyd.config | |
./scripts/feeds update -a | |
./scripts/feeds install -a -f | |
mkdir -p files/www/repo | |
mv r31 .config | |
echo 'CONFIG_GOLANG_EXTERNAL_BOOTSTRAP_ROOT="/opt/hostedtoolcache/go/1.23.5/arm64/bin"' >> .config | |
make defconfig | |
make download -j32 | |
make -j$(nproc) 'IGNORE_ERRORS=n m' || true | |
tar -czvf bin/targets/mediatek/filogic/packages.tar.gz bin/targets/mediatek/filogic/packages || true | |
tar -czvf bin/targets/mediatek/filogic/feeds-packages.tar.gz bin/packages || true | |
tar -czvf bin/targets/mediatek/filogic/logs.tar.gz logs | |
rm -rf bin/targets/mediatek/filogic/packages || true | |
echo "D=$(date +'%Y.%m.%d')" >> $GITHUB_ENV | |
- name: Delete tag | |
uses: ClementTsang/delete-tag-and-release@v0.4.0 | |
with: | |
delete_release: true | |
tag_name: v1.2-rc-arm64 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
allowUpdates: true | |
name: BPI-R3 v1.2-rc Images ARM64 ${{ env.D }} | |
tag: v1.2-rc-arm64 | |
replacesArtifacts: true | |
makeLatest: true | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
artifacts: openwrt/bin/targets/mediatek/filogic/* |