From 2718c5d0ac5092db28716c5b2038715f55f3d8a1 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 4 Jun 2023 08:37:43 +0200 Subject: [PATCH] Build all Branches paralell --- .woodpecker/{prepare.yml => 01-prepare.yml} | 0 .../{build-stable.yml => 02-build-stable.yml} | 0 .../{build-beta.yml => 03-build-beta.yml} | 2 +- .woodpecker/04-build-experimental.yml | 84 +++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) rename .woodpecker/{prepare.yml => 01-prepare.yml} (100%) rename .woodpecker/{build-stable.yml => 02-build-stable.yml} (100%) rename .woodpecker/{build-beta.yml => 03-build-beta.yml} (99%) create mode 100644 .woodpecker/04-build-experimental.yml diff --git a/.woodpecker/prepare.yml b/.woodpecker/01-prepare.yml similarity index 100% rename from .woodpecker/prepare.yml rename to .woodpecker/01-prepare.yml diff --git a/.woodpecker/build-stable.yml b/.woodpecker/02-build-stable.yml similarity index 100% rename from .woodpecker/build-stable.yml rename to .woodpecker/02-build-stable.yml diff --git a/.woodpecker/build-beta.yml b/.woodpecker/03-build-beta.yml similarity index 99% rename from .woodpecker/build-beta.yml rename to .woodpecker/03-build-beta.yml index d121e01..7349fab 100644 --- a/.woodpecker/build-beta.yml +++ b/.woodpecker/03-build-beta.yml @@ -81,4 +81,4 @@ matrix: - stable depends_on: - - build-stable \ No newline at end of file + - prepare \ No newline at end of file diff --git a/.woodpecker/04-build-experimental.yml b/.woodpecker/04-build-experimental.yml new file mode 100644 index 0000000..ddcae7e --- /dev/null +++ b/.woodpecker/04-build-experimental.yml @@ -0,0 +1,84 @@ +--- +platform: linux/arm64 + +variables: + - &default + image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest" + pull: true + environment: + - input_version=${CI_COMMIT_TAG} + - GLUON_SITEDIR=.. + - FORCE_UNSAFE_CONFIGURE=1 + - GLUON_TARGET=${TARGET} + - GLUON_DEPRECATED=1 + +workspace: + base: /build + +clone: + git: + image: woodpeckerci/plugin-git + settings: + recursive: true + +pipeline: + make_update: + <<: *default + commands: + - cd gluon + - make update + + patch-iw-to-iw-full: + <<: *default + commands: + - sed -i 's/+iw /+iw-full /g' gluon/openwrt/package/kernel/mac80211/Makefile + + build: + <<: *default + commands: + - cd gluon + - make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${BRANCH} GLUON_OUTPUTDIR=output/${BRANCH} + + upload: + image: appleboy/drone-scp + settings: + host: 46.4.138.183 + user: fwupload + key: + from_secret: ssh-key + strip_components: 2 + target: /srv/fwuploads-tmp/troisdorf/multi/ + source: gluon/output/${BRANCH}/* + when: + event: tag + +matrix: + TARGET: + - ath79-generic + - ath79-mikrotik + - ath79-nand + - bcm27xx-bcm2708 + - bcm27xx-bcm2709 + - ipq40xx-generic + - ipq40xx-mikrotik + - ipq806x-generic + - lantiq-xrx200 + - lantiq-xway + - mediatek-mt7622 + - mpc85xx-p1010 + - mpc85xx-p1020 + - ramips-mt7620 + - ramips-mt7621 + - ramips-mt76x8 + - realtek-rtl838x + - rockchip-armv8 + - sunxi-cortexa7 + - x86-64 + - x86-generic + - x86-geode + - x86-legacy + BRANCH: + - beta + +depends_on: + - prepare \ No newline at end of file