From 336cd939e8d88740bf51c22e9e9e5456afbfdd33 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 28 Nov 2020 15:34:16 -1000 Subject: [PATCH] CI: add sourcehut builds configuration Build OpenWrt default configuration to evaluate SourceHut as a GitLab CI alternative. Signed-off-by: Paul Spooren --- .builds/build.yml | 47 ++++++++++++++++++++++++++++++++++++++++ .builds/find_targets.yml | 27 +++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 .builds/build.yml create mode 100644 .builds/find_targets.yml diff --git a/.builds/build.yml b/.builds/build.yml new file mode 100644 index 0000000000..4de8a9559d --- /dev/null +++ b/.builds/build.yml @@ -0,0 +1,47 @@ +image: debian/stable + +sources: + - https://git.sr.ht/~aparcar/openwrt + +environment: + TARGET: "mediatek/mt7622" + +packages: + - build-essential + - curl + - file + - gawk + - gettext + - git + - libncurses-dev + - libssl-dev + - python3 + - rsync + - subversion + - swig + - unzip + - wget + - zlib1g-dev + +artifacts: + - ./openwrt/bin/ + +tasks: + - setup: | + cd openwrt + make defconfig + make prereq + + - update_packages: | + cd openwrt + ./scripts/feeds update + ./scripts/feeds install -a + + - configuration: | + cd openwrt + curl "https://downloads.openwrt.org/snapshots/targets/$TARGET/config.buildinfo" > .config + make defconfig + + - build: | + cd openwrt + make -j $(nproc) diff --git a/.builds/find_targets.yml b/.builds/find_targets.yml new file mode 100644 index 0000000000..a92be3c063 --- /dev/null +++ b/.builds/find_targets.yml @@ -0,0 +1,27 @@ +image: debian/stable + +sources: + - https://git.sr.ht/~aparcar/openwrt + +packages: + - build-essential + - curl + - file + - gawk + - gettext + - git + - libncurses-dev + - libssl-dev + - python3 + - rsync + - subversion + - swig + - unzip + - wget + - zlib1g-dev + +tasks: + - setup: | + cd openwrt + ./scripts/dump-target-info.pl targets > targets.txt 2>/dev/null + cat targets.txt -- 2.30.2