-
Notifications
You must be signed in to change notification settings - Fork 26
111 lines (94 loc) · 3.68 KB
/
ax3600.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
# Based on https://github.com/glassd00r/Openwrt_Builder/tree/main
# It includes the NSS package: https://github.com/qosmio/nss-packages
name: Build OpenWRT for Xiaomi AX3600 NSS build
on:
workflow_dispatch:
push:
env:
# REMOTE_REPOSITORY: openwrt/openwrt
# REMOTE_BRANCH: main
REMOTE_REPOSITORY: qosmio/openwrt-ipq
REMOTE_BRANCH: qualcommax-6.x-nss-wifi
RELEASE_PREFIX: IPQ_8074_ax3600
DEVICE_CONFIG: configs/qualcommax/ax3600
ROLE_CONFIG: configs/common/main-router
NSS_CONFIG: configs/common/nss
jobs:
build:
name: Build OpenWRT for AX3600
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y \
build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget curl
sudo apt full-upgrade -y
- name: Checkout remote repository
uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ env.REMOTE_BRANCH }}
- name: Checkout current repository
uses: actions/checkout@v4
with:
path: "custom_repo"
- name: Update and install feeds
run: |
./scripts/feeds update -a
./scripts/feeds install -a
- name: Configure firmware image
run: |
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/qualcommax/ax3600 > .config
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/main-router >> .config
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/nss >> .config
make defconfig
- name: Remove packages that are marked as modules
run: |
grep "=m" .config | grep -v 'CONFIG_PACKAGE_libustream-mbedtls=m' | while read -r line; do module=$(echo "$line" | cut -f1 -d'='); sed -i "s/^$line$/# $module is not set/" .config; done
- name: Download dependencies
run: make -j $(nproc) download
- name: Build the firmware image
run: make -j $(nproc) world
- name: Package output
run: tar -cvf ax_3600-images.tar bin/targets/qualcommax/ipq807x
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ax_3600-images
path: ax_3600-images.tar
release:
name: Create release
needs: [build]
if: needs.build.result == 'success'
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: ax_3600-images
- name: Extract artifacts
run: tar xf ax_3600-images.tar
- name: Get version
run: echo "VERSION_INFO=$(cat version.buildinfo)" >> $GITHUB_ENV
- name: Get current date
run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@master
with:
files: bin/targets/qualcommax/ipq807x/*
tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
name: OpenWRT AX3600-NSS ${{ env.RELEASE_DATE }}-${{ env.VERSION_INFO }}
body: |
Updated prebuilt images for ${{ env.RELEASE_DATE }} based on ${{ env.VERSION_INFO }}
Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }}
- name: Clean up old releases
uses: dev-drprasad/delete-older-releases@master
with:
keep_latest: 5
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}