init: build repo skeleton for ipq60xx (woodpecker)
This commit is contained in:
57
.woodpecker/ipq60xx.yml
Normal file
57
.woodpecker/ipq60xx.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
when:
|
||||
- event: [push, manual, cron]
|
||||
branch: main
|
||||
|
||||
variables:
|
||||
WRT_REPO: "https://github.com/VIKINGYFY/immortalwrt.git"
|
||||
WRT_BRANCH: "main" # IPQ60XX 用 main
|
||||
|
||||
steps:
|
||||
- name: init-env
|
||||
image: ubuntu:24.04
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends ca-certificates curl git rsync dos2unix jq
|
||||
- bash -c 'bash <(curl -fsSL https://build-scripts.immortalwrt.org/init_build_environment.sh)'
|
||||
|
||||
- name: build-ipq60xx-wifi-yes
|
||||
image: ubuntu:24.04
|
||||
commands:
|
||||
- git clone --depth=1 --single-branch --branch ${WRT_BRANCH} ${WRT_REPO} wrt-yes
|
||||
- cd wrt-yes
|
||||
- ./scripts/feeds update -a
|
||||
- ./scripts/feeds install -a
|
||||
- cd package
|
||||
- dos2unix ${CI_WORKSPACE}/Scripts/*.sh || true
|
||||
- chmod +x ${CI_WORKSPACE}/Scripts/*.sh
|
||||
- ${CI_WORKSPACE}/Scripts/Packages.sh ${CI_WORKSPACE}/Scripts/Handles.sh
|
||||
- cd ..
|
||||
- cat ${CI_WORKSPACE}/Config/IPQ60XX-WIFI-YES.txt ${CI_WORKSPACE}/Config/GENERAL.txt > .config
|
||||
- ${CI_WORKSPACE}/Scripts/Settings.sh
|
||||
- make defconfig -j"$(nproc)"
|
||||
- make download -j"$(nproc)"
|
||||
- make -j"$(nproc)" || make -j1 V=s
|
||||
- mkdir -p ${CI_WORKSPACE}/artifacts/ipq60xx-wifi-yes
|
||||
- cp -rf bin/targets ${CI_WORKSPACE}/artifacts/ipq60xx-wifi-yes/
|
||||
|
||||
- name: build-ipq60xx-wifi
|
||||
image: ubuntu:24.04
|
||||
commands:
|
||||
- git clone --depth=1 --single-branch --branch ${WRT_BRANCH} ${WRT_REPO} wrt-wifi
|
||||
- cd wrt-wifi
|
||||
- ./scripts/feeds update -a
|
||||
- ./scripts/feeds install -a
|
||||
- cd package
|
||||
- dos2unix ${CI_WORKSPACE}/Scripts/*.sh || true
|
||||
- chmod +x ${CI_WORKSPACE}/Scripts/*.sh
|
||||
- ${CI_WORKSPACE}/Scripts/Packages.sh ${CI_WORKSPACE}/Scripts/Handles.sh
|
||||
- cd ..
|
||||
- cat ${CI_WORKSPACE}/Config/IPQ60XX-WIFI.txt ${CI_WORKSPACE}/Config/GENERAL.txt > .config
|
||||
- ${CI_WORKSPACE}/Scripts/Settings.sh
|
||||
- make defconfig -j"$(nproc)"
|
||||
- make download -j"$(nproc)"
|
||||
- make -j"$(nproc)" || make -j1 V=s
|
||||
- mkdir -p ${CI_WORKSPACE}/artifacts/ipq60xx-wifi
|
||||
- cp -rf bin/targets ${CI_WORKSPACE}/artifacts/ipq60xx-wifi/
|
||||
Reference in New Issue
Block a user