Skip to content

Commit c35144b

Browse files
committed
Clone openwrt inside a task in mtk feed build
Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
1 parent 98e2559 commit c35144b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/bpi-r4-mediatek_feed.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
- non-poe
1717

1818
env:
19-
REMOTE_REPOSITORY: openwrt/openwrt
20-
REMOTE_BRANCH: main
19+
REMOTE_REPOSITORY: danpawlik/openwrt-builder
20+
REMOTE_BRANCH: master
2121
RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4_mediatek
2222
DEVICE_CONFIG: ${{ inputs.DEVICE_CONFIG == 'poe' && 'configs/mediatek/mt7988a/bpi-r4-poe' || 'configs/mediatek/mt7988a/bpi-r4' }}
2323
ROLE_CONFIG: configs/common/main-router
@@ -62,6 +62,10 @@ jobs:
6262
repository: ${{ env.REMOTE_REPOSITORY }}
6363
ref: ${{ env.REMOTE_BRANCH }}
6464

65+
- name: Clone openwrt
66+
run: |
67+
git clone https://github.com/openwrt/openwrt
68+
6569
- name: Clone Mediatek feed
6670
run: |
6771
git clone https://git01.mediatek.com/openwrt/feeds/mtk-openwrt-feeds
@@ -74,7 +78,6 @@ jobs:
7478
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot >> my-config
7579
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/sfp >> my-config
7680
sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' my-config
77-
curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot-mtk-feed >> my-config
7881
sed -i '/CONFIG_PACKAGE_qosify=y/d' my-config
7982
sed -i '/CONFIG_PACKAGE_sqm-scripts=y/d' my-config
8083
@@ -84,24 +87,25 @@ jobs:
8487
grep '^CONFIG_PACKAGE*' my-config >> mtk-openwrt-feeds/autobuild/unified/filogic/25.12/defconfig
8588
grep '^CONFIG_PACKAGE*' my-config >> mtk-openwrt-feeds/autobuild/unified/filogic/24.10/defconfig
8689
87-
- name: Make symlink for mtk feed
88-
run: |
89-
ln -s mtk-openwrt-feeds ../
90-
9190
- name: Run Mediatek build - without additional packages
9291
run: |
92+
cd openwrt
9393
bash ../mtk-openwrt-feeds/autobuild/unified/autobuild.sh filogic bootloader=1 log_file=make || true
9494
9595
- name: Print the config file
96-
run: cat .config
96+
run: |
97+
cd openwrt
98+
cat .config
9799
98100
- name: Disable nf-flow-netlink
99101
run: |
102+
cd openwrt
100103
find feeds -type f -exec sed -i 's/\+kmod-nf-flow-netlink//g' {} \;
101104
sed -i 's/+kmod-nf-flow-netlink//g' feeds/mtk_openwrt_feed/feed/app/flowtable/Makefile
102105
103106
- name: Build image with packages
104107
run: |
108+
cd openwrt
105109
make -j$(nproc) world
106110
107111
- name: Compress all packages

0 commit comments

Comments
 (0)