From a7acaf7fcd31c5665704a33beb18dfdef798eb4b Mon Sep 17 00:00:00 2001 From: dimfish Date: Fri, 18 Nov 2022 12:15:04 +0300 Subject: [PATCH] Autobuild Xiaomi AX3000T --- .github/FUNDING.yml | 1 - .github/ISSUE_TEMPLATE/bug-report.yml | 93 ------------ .github/ISSUE_TEMPLATE/config.yml | 12 -- .github/labeler.yml | 139 ------------------ .github/pull_request_template | 8 - .github/workflows/ax3000t.yaml | 91 ++++++++++++ .github/workflows/coverity.yml | 19 --- .github/workflows/formal.yml | 73 --------- .github/workflows/github-release.yml | 24 --- .github/workflows/issue-labeller.yml | 11 -- .github/workflows/kernel.yml | 42 ------ .github/workflows/label-kernel.yml | 16 -- .github/workflows/label-target.yml | 16 -- .github/workflows/labeler.yml | 33 ----- .github/workflows/packages.yml | 42 ------ .github/workflows/push-containers.yml | 28 ---- .github/workflows/scripts/ci_helpers.sh | 26 ---- .../workflows/scripts/show_build_failures.sh | 15 -- .github/workflows/toolchain.yml | 29 ---- .github/workflows/tools.yml | 27 ---- 20 files changed, 91 insertions(+), 654 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug-report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/labeler.yml delete mode 100644 .github/pull_request_template create mode 100644 .github/workflows/ax3000t.yaml delete mode 100644 .github/workflows/coverity.yml delete mode 100644 .github/workflows/formal.yml delete mode 100644 .github/workflows/github-release.yml delete mode 100644 .github/workflows/issue-labeller.yml delete mode 100644 .github/workflows/kernel.yml delete mode 100644 .github/workflows/label-kernel.yml delete mode 100644 .github/workflows/label-target.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/packages.yml delete mode 100644 .github/workflows/push-containers.yml delete mode 100644 .github/workflows/scripts/ci_helpers.sh delete mode 100755 .github/workflows/scripts/show_build_failures.sh delete mode 100644 .github/workflows/toolchain.yml delete mode 100644 .github/workflows/tools.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 4d7a7262697a31..00000000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: [ 'https://openwrt.org/donate' ] diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml deleted file mode 100644 index 2ec7b7d7d8893a..00000000000000 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: Bug report -description: Create a bug report to help us improve -labels: - - bug -body: - - type: textarea - id: description - attributes: - label: Describe the bug - description: A clear and concise description of the bug. - validations: - required: true - - type: input - id: version - attributes: - label: OpenWrt version - description: | - The OpenWrt release or commit hash where this bug occurs (use command below). - ```. /etc/openwrt_release && echo $DISTRIB_REVISION``` - validations: - required: true - - type: input - id: release - attributes: - label: OpenWrt release - description: | - The OpenWrt release or commit hash where this bug occurs (use command below). - ```. /etc/openwrt_release && echo $DISTRIB_RELEASE``` - validations: - required: true - - type: input - id: target - attributes: - label: OpenWrt target/subtarget - description: | - The OpenWrt target and subtarget where this bug is observed (use command below). - ```. /etc/openwrt_release && echo $DISTRIB_TARGET``` - validations: - required: true - - type: input - id: device - attributes: - label: Device - description: | - The device exhibiting this bug (if unsure, use command below). - ```cat /tmp/sysinfo/model``` - validations: - required: true - - type: dropdown - id: image_kind - attributes: - label: Image kind - options: - - Official downloaded image - - Self-built image - validations: - required: true - - type: textarea - id: reproduce - attributes: - label: Steps to reproduce - description: Steps to reproduce the reported behaviour. - - type: textarea - id: behaviour - attributes: - label: Actual behaviour - description: A clear and concise description of what actually happens. - - type: textarea - id: expected - attributes: - label: Expected behaviour - description: A clear and concise description of what you expected to happen. - - type: textarea - id: additional - attributes: - label: Additional info - description: Add any additional info you think might be helfpul. - - type: textarea - id: diffconfig - attributes: - label: Diffconfig - description: | - In case of a self-built image, please attach diffconfig. - ```./scripts/diffconfig.sh``` - render: text - - type: checkboxes - id: terms - attributes: - label: Terms - description: By submitting this issue, you agree to the terms below. - options: - - label: I am reporting an issue for OpenWrt, not an unsupported fork. - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 91e2489077c78a..00000000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -blank_issues_enabled: false -contact_links: - - name: Feature request - url: https://forum.openwrt.org/c/feature-requests - about: The OpenWrt project relies on volunteers. While we appreciate feature requests, we might lack the manpower to handle them. Ideally, you get familiar with the codebase and attempt to contribute the feature yourself. We recommend to post in the forum, as this is the most likely place to receive feedback on feature requests. - - name: OpenWrt community - url: https://openwrt.org/contact - about: Consider reaching out to our community to get help. OpenWrt is a complex software project with many pitfalls; there is a good chance someone can help you solve your issue in no time. - - name: OpenWrt documentation - url: https://openwrt.org/docs/start - about: The OpenWrt documentation contains a lot of valuable information. diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index c8f8466d4a6100..00000000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,139 +0,0 @@ -# target/* -"target/airoha": - - "target/linux/airoha/**" -"target/apm821xx": - - "target/linux/apm821xx/**" -"target/archs38": - - "target/linux/archs38/**" -"target/armsr": - - "target/linux/armsr/**" -"target/at91": - - "target/linux/at91/**" - - "package/boot/at91bootstrap/**" - - "package/boot/uboot-at91/**" -"target/ath25": - - "target/linux/ath25/**" -"target/ath79": - - "target/linux/ath79/**" -"target/bcm27xx": - - "target/linux/bcm27xx/**" - - "package/kernel/bcm27xx-gpu-fw/**" -"target/bcm47xx": - - "target/linux/bcm47xx/**" -"target/bcm4908": - - "target/linux/bcm4908/**" - - "package/boot/uboot-bcm4908/**" -"target/bcm53xx": - - "target/linux/bcm53xx/**" - - "package/boot/uboot-bcm53xx/**" -"target/bcm63xx": - - "target/linux/bcm63xx/**" - - "package/kernel/bcm63xx-cfe/**" - - "package/boot/arm-trusted-firmware-bcm63xx/**" -"target/bmips": - - "target/linux/bmips/**" -"target/gemini": - - "target/linux/gemini/**" -"target/imx": - - "target/linux/imx/**" - - "package/boot/imx-bootlets/**" - - "package/boot/uboot-imx/**" -"target/ipq40xx": - - "target/linux/ipq40xx/**" -"target/ipq806x": - - "target/linux/ipq806x/**" -"target/qualcommax": - - "target/linux/qualcommax/**" -"target/kirkwood": - - "target/linux/kirkwood/**" - - "package/boot/uboot-kirkwood/**" -"target/lantiq": - - "target/linux/lantiq/**" - - "package/kernel/lantiq/**" - - "package/firmware/lantiq/**" - - "package/boot/uboot-lantiq/**" -"target/layerscape": - - "target/linux/layerscape/**" - - "package/firmware/layerscape/**" - - "package/boot/tfa-layerscape/**" - - "package/boot/uboot-layerscape/**" - - "package/network/utils/layerscape/**" -"target/malta": - - "target/linux/malta/**" -"target/mediatek": - - "target/linux/mediatek/**" - - "package/boot/arm-trusted-firmware-mediatek/**" - - "package/boot/uboot-mediatek/**" -"target/mpc85xx": - - "target/linux/mpc85xx/**" -"target/mvebu": - - "target/linux/mvebu/**" - - "package/boot/arm-trusted-firmware-mvebu/**" - - "package/boot/uboot-mvebu/**" -"target/mxs": - - "target/linux/mxs/**" - - "package/boot/uboot-mxs/**" -"target/octeon": - - "target/linux/octeon/**" -"target/octeontx": - - "target/linux/octeontx/**" -"target/omap": - - "target/linux/omap/**" - - "package/boot/uboot-omap/**" -"target/oxnas": - - "target/linux/oxnas/**" - - "package/boot/uboot-oxnas/**" -"target/pistachio": - - "target/linux/pistachio/**" -"target/qoriq": - - "target/linux/qoriq/**" -"target/ramips": - - "target/linux/ramips/**" -"target/realtek": - - "target/linux/realtek/**" -"target/rockchip": - - "target/linux/rockchip/**" - - "package/boot/arm-trusted-firmware-rockchip/**" - - "package/boot/uboot-rockchip/**" -"target/sifiveu": - - "target/linux/sifiveu/**" - - "package/boot/uboot-sifiveu/**" - - "package/boot/opensbi/**" -"target/sunxi": - - "target/linux/sunxi/**" - - "package/boot/arm-trusted-firmware-sunxi/**" - - "package/boot/uboot-sunxi/**" -"target/tegra": - - "target/linux/tegra/**" - - "package/boot/uboot-tegra/**" -"target/uml": - - "target/linux/uml/**" -"target/x86": - - "target/linux/x86/**" -"target/zynq": - - "target/linux/zynq/**" - - "package/boot/uboot-zynq/**" -# target/imagebuilder -"target/imagebuilder": - - "target/imagebuilder/**" -# kernel -"kernel": - - "target/linux/generic/**" - - "target/linux/**/config-*" - - "target/linux/**/patches-*" - - "target/linux/**/files/**" - - "package/kernel/linux/**" -# core packages -"core packages": - - "package/**" -# build/scripts/tools -"build/scripts/tools": - - "include/**" - - "scripts/**" - - "tools/**" -# toolchain -"toolchain": - - "toolchain/**" -# GitHub/CI -"GitHub/CI": - - ".github/**" diff --git a/.github/pull_request_template b/.github/pull_request_template deleted file mode 100644 index a2d6bd185ff61d..00000000000000 --- a/.github/pull_request_template +++ /dev/null @@ -1,8 +0,0 @@ -Thanks for your contribution to OpenWrt! - -To help keep the codebase consistent and readable, -and to help people review your contribution, -we ask you to follow the rules you find in the wiki at this link -https://openwrt.org/submitting-patches - -Please remove this message before posting the pull request. diff --git a/.github/workflows/ax3000t.yaml b/.github/workflows/ax3000t.yaml new file mode 100644 index 00000000000000..d36797679ec638 --- /dev/null +++ b/.github/workflows/ax3000t.yaml @@ -0,0 +1,91 @@ +name: Build Xiaomi AX3000T +on: [push] + +jobs: + build: + name: Prepare and build Xiaomi AX3000T + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Update and install feeds + run: | + ./scripts/feeds update -a + ./scripts/feeds install -a + + - name: Generate config for Xiaomi AX3000T + run: | + echo "CONFIG_TARGET_mediatek=y\n" > .config + echo "CONFIG_TARGET_mediatek_filogic=y\n" >> .config + echo "CONFIG_TARGET_MULTI_PROFILE=y\n" >> .config + echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y\n" >> .config + echo "CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-ax3000t-ubootmod=y\n" >> .config + echo "CONFIG_TARGET_DEVICE_mediatek_filogic_DEVICE_xiaomi_mi-router-ax3000t-stock=y\n" >> .config + echo "CONFIG_PACKAGE_wpad-basic-mbedtls=m\n" >> .config + echo "CONFIG_PACKAGE_libwolfsslcpu-crypto=y\n" >> .config + echo "CONFIG_PACKAGE_wpad-wolfssl=y\n" >> .config + echo "CONFIG_PACKAGE_dnsmasq=m\n" >> .config + echo "CONFIG_PACKAGE_dnsmasq-full=y\n" >> .config + echo "CONFIG_PACKAGE_kmod-nf-nathelper=y\n" >> .config + echo "CONFIG_PACKAGE_kmod-nf-nathelper-extra=y\n" >> .config + echo "CONFIG_PACKAGE_luci=y\n" >> .config + echo "CONFIG_PACKAGE_luci-proto-wireguard=y\n" >> .config + echo "CONFIG_PACKAGE_xl2tpd=y\n" >> .config + + make defconfig + + - name: Download package sources + run: make download V=s + + - name: Build tools + run: | + make tools/install -j$(nproc) V=s || \ + make tools/install V=s + + - name: Build toolchain + run: | + make toolchain/install -j$(nproc) V=s || \ + make toolchain/install V=s + + - name: Build target images + run: | + make -j$(nproc) V=s || \ + make V=s + + - name: TAR output + run: tar -cvf filogicx-images.tar bin/targets/mediatek/filogic/ + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: filogic-images + path: filogicx-images.tar + + release: + name: Make a release + runs-on: ubuntu-latest + needs: build + + steps: + - name: Download the image artifacts + uses: actions/download-artifact@v3 + with: + name: filogic-images + + - name: Extract the image artifacts + run: tar xf filogicx-images.tar + + - name: Get the current date + run: echo "NOW=$(date +%F)" >> $GITHUB_ENV + + - name: Create a release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + title: "Xiaomi AX3000T ${{ env.NOW }}" + automatic_release_tag: "filogic-${{ env.NOW }}" + auto_generate_release_notes: true + files: bin/targets/mediatek/filogic/* \ No newline at end of file diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml deleted file mode 100644 index f54695986daace..00000000000000 --- a/.github/workflows/coverity.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Coverity scan build - -on: - schedule: - - cron: '30 2 * * 6' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - -jobs: - coverity_build: - name: Coverity x86/64 build - secrets: - coverity_api_token: ${{ secrets.COVERITY_API_TOKEN }} - permissions: - contents: read - packages: read - actions: write - uses: openwrt/actions-shared-workflows/.github/workflows/coverity.yml@main diff --git a/.github/workflows/formal.yml b/.github/workflows/formal.yml deleted file mode 100644 index 8083c5832ca4d4..00000000000000 --- a/.github/workflows/formal.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Test Formalities - -on: - pull_request: - -permissions: - contents: read - -jobs: - build: - name: Test Formalities - runs-on: ubuntu-latest - strategy: - fail-fast: false - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - - name: Determine branch name - run: | - BRANCH="${GITHUB_BASE_REF#refs/heads/}" - echo "Building for $BRANCH" - echo "BRANCH=$BRANCH" >> $GITHUB_ENV - - - name: Test formalities - run: | - source .github/workflows/scripts/ci_helpers.sh - - RET=0 - for commit in $(git rev-list HEAD ^origin/$BRANCH); do - info "=== Checking commit '$commit'" - if git show --format='%P' -s $commit | grep -qF ' '; then - err "Pull request should not include merge commits" - RET=1 - fi - - author="$(git show -s --format=%aN $commit)" - if echo $author | grep -q '\S\+\s\+\S\+'; then - success "Author name ($author) seems ok" - else - err "Author name ($author) need to be your real name 'firstname lastname'" - RET=1 - fi - - subject="$(git show -s --format=%s $commit)" - if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_\.-]\+: ' -e '^Revert '; then - success "Commit subject line seems ok ($subject)" - else - err "Commit subject line MUST start with ': ' ($subject)" - RET=1 - fi - - body="$(git show -s --format=%b $commit)" - sob="$(git show -s --format='Signed-off-by: %aN <%aE>' $commit)" - if echo "$body" | grep -qF "$sob"; then - success "Signed-off-by match author" - else - err "Signed-off-by is missing or doesn't match author (should be '$sob')" - RET=1 - fi - - if echo "$body" | grep -v "Signed-off-by:"; then - success "A commit message exists" - else - err "Missing commit message. Please describe your changes" - RET=1 - fi - done - - exit $RET diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml deleted file mode 100644 index 55d01f85cbba2d..00000000000000 --- a/.github/workflows/github-release.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Create GitHub release - -permissions: - contents: write - -on: - push: - tags: - - "v*" - workflow_dispatch: - -jobs: - release: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Release - uses: softprops/action-gh-release@v1 - with: - draft: true - prerelease: true diff --git a/.github/workflows/issue-labeller.yml b/.github/workflows/issue-labeller.yml deleted file mode 100644 index c94b99b5ecb45b..00000000000000 --- a/.github/workflows/issue-labeller.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Issue Labeller -on: - issues: - types: [ opened ] - -jobs: - label-component: - name: Validate and Tag Bug Report - permissions: - issues: write - uses: openwrt/actions-shared-workflows/.github/workflows/issue-labeller.yml@main diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml deleted file mode 100644 index 43c610ab4f00cb..00000000000000 --- a/.github/workflows/kernel.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build Kernel - -on: - pull_request: - paths: - - '.github/workflows/check-kernel-patches.yml' - - '.github/workflows/build.yml' - - '.github/workflows/kernel.yml' - - 'include/kernel*' - - 'package/kernel/**' - - 'target/linux/**' - push: - paths: - - '.github/workflows/check-kernel-patches.yml' - - '.github/workflows/build.yml' - - '.github/workflows/kernel.yml' - - 'include/kernel*' - - 'package/kernel/**' - - 'target/linux/**' - branches-ignore: - - master - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - build-kernels: - name: Build all affected Kernels - permissions: - contents: read - packages: read - actions: write - secrets: - ccache_s3_endpoint: ${{ secrets.CCACHE_S3_ENDPOINT }} - ccache_s3_bucket: ${{ secrets.CCACHE_S3_BUCKET }} - ccache_s3_access_key: ${{ secrets.CCACHE_S3_ACCESS_KEY }} - ccache_s3_secret_key: ${{ secrets.CCACHE_S3_SECRET_KEY }} - uses: openwrt/actions-shared-workflows/.github/workflows/kernel.yml@main diff --git a/.github/workflows/label-kernel.yml b/.github/workflows/label-kernel.yml deleted file mode 100644 index 655d7d6ff371b5..00000000000000 --- a/.github/workflows/label-kernel.yml +++ /dev/null @@ -1,16 +0,0 @@ -# ci:kernel:x86:64 is going to trigger CI kernel check jobs for x86/64 target - -name: Build kernel and check patches for target specified in labels -on: - pull_request: - types: - - labeled - -jobs: - build-kernels-label: - name: Build all affected Kernels from defined label - permissions: - contents: read - packages: read - actions: write - uses: openwrt/actions-shared-workflows/.github/workflows/label-kernel.yml@main diff --git a/.github/workflows/label-target.yml b/.github/workflows/label-target.yml deleted file mode 100644 index 989ee9fcb43491..00000000000000 --- a/.github/workflows/label-target.yml +++ /dev/null @@ -1,16 +0,0 @@ -# ci:target:x86:64 is going to trigger CI target check jobs for x86/64 target - -name: Build check target specified in labels -on: - pull_request: - types: - - labeled - -jobs: - build-target-label: - name: Build target from defined label - permissions: - contents: read - packages: read - actions: write - uses: openwrt/actions-shared-workflows/.github/workflows/label-target.yml@main diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 5f82b88a50a7dc..00000000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'Pull Request Labeler' -on: - - pull_request_target - -permissions: - contents: read - -jobs: - labeler: - permissions: - contents: read # to determine modified files (actions/labeler) - pull-requests: write # to add labels to PRs (actions/labeler) - - name: Pull Request Labeler - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' - - - name: Check Branch - id: check-branch - run: | - if echo "${{ github.base_ref }}" | grep -q -E 'openwrt-[0-9][0-9]\.[0-9][0-9]'; then - echo "release-tag=$(echo ${{ github.base_ref }} | sed 's/openwrt-/release\//')" >> $GITHUB_OUTPUT - fi - - - uses: buildsville/add-remove-label@v2.0.0 - if: ${{ steps.check-branch.outputs.release-tag }} - with: - token: ${{secrets.GITHUB_TOKEN}} - labels: ${{ steps.check-branch.outputs.release-tag }} - type: add diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml deleted file mode 100644 index f061c1cd371a5d..00000000000000 --- a/.github/workflows/packages.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build all core packages - -on: - pull_request: - paths: - - '.github/workflows/packages.yml' - - 'config/**' - - 'include/**' - - 'package/**' - - 'target/linux/generic/**' - - 'toolchain/**' - push: - paths: - - '.github/workflows/packages.yml' - - 'config/**' - - 'include/**' - - 'package/**' - - 'target/linux/generic/**' - - 'toolchain/**' - branches-ignore: - - master - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - build-packages: - name: Build all core packages for selected target - permissions: - contents: read - packages: read - actions: write - secrets: - ccache_s3_endpoint: ${{ secrets.CCACHE_S3_ENDPOINT }} - ccache_s3_bucket: ${{ secrets.CCACHE_S3_BUCKET }} - ccache_s3_access_key: ${{ secrets.CCACHE_S3_ACCESS_KEY }} - ccache_s3_secret_key: ${{ secrets.CCACHE_S3_SECRET_KEY }} - uses: openwrt/actions-shared-workflows/.github/workflows/packages.yml@main diff --git a/.github/workflows/push-containers.yml b/.github/workflows/push-containers.yml deleted file mode 100644 index 74f534d57a4a40..00000000000000 --- a/.github/workflows/push-containers.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build and Push prebuilt tools container - -on: - push: - paths: - - 'include/version.mk' - - 'include/cmake.mk' - - 'tools/**' - - '.github/workflows/push-containers.yml' - - 'toolchain/**' - branches-ignore: - - master - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-push-containers: - name: Build and Push all prebuilt containers - permissions: - contents: read - packages: write - actions: write - uses: openwrt/actions-shared-workflows/.github/workflows/push-containers.yml@main diff --git a/.github/workflows/scripts/ci_helpers.sh b/.github/workflows/scripts/ci_helpers.sh deleted file mode 100644 index 2f9daf81e2bad6..00000000000000 --- a/.github/workflows/scripts/ci_helpers.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -color_out() { - printf "\e[0;$1m%s\e[0;0m\n" "$2" -} - -success() { - color_out 32 "$1" -} - -info() { - color_out 36 "$1" -} - -err() { - color_out 31 "$1" -} - -warn() { - color_out 33 "$1" -} - -err_die() { - err "$1" - exit 1 -} diff --git a/.github/workflows/scripts/show_build_failures.sh b/.github/workflows/scripts/show_build_failures.sh deleted file mode 100755 index 7b1a021155bdc1..00000000000000 --- a/.github/workflows/scripts/show_build_failures.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -original_exit_code="${ret:-1}" -log_dir_path="${1:-logs}" -context="${2:-10}" - -show_make_build_errors() { - grep -slr 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_dir_path" | while IFS= read -r log_file; do - printf "====== Make errors from %s ======\n" "$log_file"; - grep -r -C"$context" 'make\[[[:digit:]]\+\].*Error [[:digit:]]\+$' "$log_file" ; - done -} - -show_make_build_errors -exit "$original_exit_code" diff --git a/.github/workflows/toolchain.yml b/.github/workflows/toolchain.yml deleted file mode 100644 index 0bc9fec1795f76..00000000000000 --- a/.github/workflows/toolchain.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build Toolchains - -on: - pull_request: - paths: - - '.github/workflows/toolchain.yml' - - 'toolchain/**' - push: - paths: - - '.github/workflows/toolchain.yml' - - 'toolchain/**' - branches-ignore: - - master - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - build-toolchains: - name: Build Toolchains for each target - permissions: - contents: read - packages: read - actions: write - uses: openwrt/actions-shared-workflows/.github/workflows/toolchain.yml@main diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml deleted file mode 100644 index 35904a5e564f65..00000000000000 --- a/.github/workflows/tools.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build host tools - -on: - pull_request: - paths: - - 'include/**' - - 'tools/**' - - '.github/workflows/tools.yml' - push: - paths: - - 'include/**' - - 'tools/**' - - '.github/workflows/tools.yml' - branches-ignore: - - master - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - build-tools: - name: Build host tools for linux and macos based systems - uses: openwrt/actions-shared-workflows/.github/workflows/tools.yml@main