From 8d06e76b160e10a2c7fced08efc3452f8b205b38 Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin Date: Fri, 26 Aug 2022 16:46:00 +0300 Subject: [PATCH] Add CI build checks for ensure PRs don't break anything (#410) --- .github/workflows/matrix_build.yml | 14 ++++++++++++++ Makefile | 4 +++- .../board/s3l/kernel/patches/20_fix_gcc8.patch | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) create mode 120000 br-ext-chip-ambarella/board/s3l/kernel/patches/20_fix_gcc8.patch diff --git a/.github/workflows/matrix_build.yml b/.github/workflows/matrix_build.yml index e68c7eca..a3674b6d 100644 --- a/.github/workflows/matrix_build.yml +++ b/.github/workflows/matrix_build.yml @@ -468,3 +468,17 @@ jobs: TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ -F chat_id=$TG_CHANNEL -F document="@$NORFW_PATH" -F caption="$TG_HEADER" + + ci-build-check: + if: always() && github.event.pull_request + runs-on: ubuntu-latest + name: CI Build Check + needs: [buildroot] + steps: + - run: | + result="${{ needs.buildroot.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi diff --git a/Makefile b/Makefile index 2d3c9d41..78cc8c0f 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,9 @@ clean: prepare: $(BR_DIR) $(ROOT_DIR)/buildroot-$(BR_VER).tar.gz: - wget -O $@ --header="Host: buildroot.org" --no-check-certificate https://buildroot.org/downloads/buildroot-$(BR_VER).tar.gz + wget -O $@ -nv \ + --retry-connrefused --continue --timeout=15 \ + http://buildroot.org/downloads/buildroot-$(BR_VER).tar.gz $(BR_DIR): $(ROOT_DIR)/buildroot-$(BR_VER).tar.gz tar -C $(ROOT_DIR) -xf buildroot-$(BR_VER).tar.gz diff --git a/br-ext-chip-ambarella/board/s3l/kernel/patches/20_fix_gcc8.patch b/br-ext-chip-ambarella/board/s3l/kernel/patches/20_fix_gcc8.patch new file mode 120000 index 00000000..66ce4243 --- /dev/null +++ b/br-ext-chip-ambarella/board/s3l/kernel/patches/20_fix_gcc8.patch @@ -0,0 +1 @@ +../../../../../patches/linux/3.10.x/gcc8_err_encountered.patch \ No newline at end of file