Skip to content

Commit

Permalink
Autobuild Xiaomi AX3000T
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfishr committed Nov 16, 2023
1 parent 48e770f commit 3210381
Show file tree
Hide file tree
Showing 20 changed files with 90 additions and 654 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

93 changes: 0 additions & 93 deletions .github/ISSUE_TEMPLATE/bug-report.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

139 changes: 0 additions & 139 deletions .github/labeler.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/pull_request_template

This file was deleted.

90 changes: 90 additions & 0 deletions .github/workflows/ax3000t.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Build Xiaomi AX3000T
on: [push]

jobs:
build:
name: Prepare and build Xiaomi AX3000T
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update and install feeds
run: |
./scripts/feeds update -a
./scripts/feeds install -a
- name: Generate config for Xiaomi AX3000T
run: |
echo "CONFIG_TARGET_mediatek=y\n" > .config
echo "CONFIG_TARGET_mediatek_filogic=y\n" >> .config
echo "CONFIG_TARGET_MULTI_PROFILE=y\n" >> .config
echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y\n" >> .config
echo "CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-ax3000t-ubootmod=y\n" >> .config
echo "CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-ax3000t-stock=y\n" >> .config
echo "CONFIG_PACKAGE_wpad-basic-mbedtls=m\n" >> .config
echo "CONFIG_PACKAGE_libwolfsslcpu-crypto=y\n" >> .config
echo "CONFIG_PACKAGE_wpad-wolfssl=y\n" >> .config
echo "CONFIG_PACKAGE_dnsmasq=m\n" >> .config
echo "CONFIG_PACKAGE_dnsmasq-full=y\n" >> .config
echo "CONFIG_PACKAGE_kmod-nf-nathelper=y\n" >> .config
echo "CONFIG_PACKAGE_kmod-nf-nathelper-extra=y\n" >> .config
echo "CONFIG_PACKAGE_luci=y\n" >> .config
echo "CONFIG_PACKAGE_luci-proto-wireguard=y\n" >> .config
make defconfig
- name: Download package sources
run: make download V=s

- name: Build tools
run: |
make tools/install -j$(nproc) V=s || \
make tools/install V=s
- name: Build toolchain
run: |
make toolchain/install -j$(nproc) V=s || \
make toolchain/install V=s
- name: Build target images
run: |
make -j$(nproc) V=s || \
make V=s
- name: TAR output
run: tar -cvf filogicx-images.tar bin/targets/mediatek/filogic/

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: filogic-images
path: filogicx-images.tar

release:
name: Make a release
runs-on: ubuntu-latest
needs: build

steps:
- name: Download the image artifacts
uses: actions/download-artifact@v3
with:
name: filogic-images

- name: Extract the image artifacts
run: tar xf filogicx-images.tar

- name: Get the current date
run: echo "NOW=$(date +%F)" >> $GITHUB_ENV

- name: Create a release
uses: "lauravuo/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: "Updated prebuilt images ${{ env.NOW }}"
automatic_release_tag: "filogic-${{ env.NOW }}"
auto_generate_release_notes: true
files: bin/targets/mediatek/filogic/*
19 changes: 0 additions & 19 deletions .github/workflows/coverity.yml

This file was deleted.

Loading

0 comments on commit 3210381

Please sign in to comment.