Cudy x6 images arm64 #24
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: Cudy x6 images arm64 | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Cudy x6 images | |
runs-on: ubuntu-24.04-arm | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.5' | |
cache: false | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
go version | true | |
git clone https://github.com/openwrt/openwrt.git | |
cp -rf r3/* openwrt/ | |
cd openwrt | |
wget https://github.com/mj22226/source/commit/64d9b0c254fa5ebdcbc1ffa941e16a783b776954.patch | |
git apply 64d9b0c254fa5ebdcbc1ffa941e16a783b776954.patch | |
git apply mt7621.patch | |
git apply 01-ip-addr.patch | |
./scripts/feeds update -a | |
./scripts/feeds install -a -f | |
mv cudy-x6 .config | |
make defconfig | |
sed -i "4s/login/login -f root/" feeds/packages/utils/ttyd/files/ttyd.config | |
make download -j32 | |
make -j$(nproc) 'IGNORE_ERRORS=n m' | |
rm -rf bin/targets/ramips/mt7621/packages | |
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: cudyx6-arm64 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
allowUpdates: true | |
name: Cudy X6 Images ARM64 ${{ env.D }} | |
tag: cudyx6-arm64 | |
replacesArtifacts: true | |
makeLatest: true | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
artifacts: openwrt/bin/targets/ramips/mt7621/* |