From 565951118e366773341498117e5a650d03940134 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:13:32 -0600 Subject: [PATCH] Automated Package Build: autoconf_archive branch started at 2024-12-13-18Z (#10956) * autoconf_archive => 2024.10.16 Signed-off-by: Satadru Pramanik * Adjust build workflow further. Signed-off-by: Satadru Pramanik * Add built packages for linux/386 to autoconf_archive * Add built packages for linux/amd64 to autoconf_archive * Add built packages for linux/arm/v7 to autoconf_archive * Add cron job to automatically close/reopen automated PRs that require checks to be run. Signed-off-by: Satadru Pramanik * suggested changes Signed-off-by: Satadru Pramanik * Adjust variables for multiple possible workflow triggers. Signed-off-by: Satadru Pramanik --------- Signed-off-by: Satadru Pramanik Co-authored-by: Satadru Pramanik Co-authored-by: satmandu --- .github/workflows/Unit-Test.yml | 16 ++++++++-------- .github/workflows/autocheck.yml | 18 ++++++++++++++++++ manifest/armv7l/a/autoconf_archive.filelist | 4 ++++ manifest/i686/a/autoconf_archive.filelist | 4 ++++ manifest/x86_64/a/autoconf_archive.filelist | 4 ++++ packages/autoconf_archive.rb | 10 +++++----- 6 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/autocheck.yml diff --git a/.github/workflows/Unit-Test.yml b/.github/workflows/Unit-Test.yml index d2f990a9d..e06f184ed 100644 --- a/.github/workflows/Unit-Test.yml +++ b/.github/workflows/Unit-Test.yml @@ -1,8 +1,12 @@ --- -name: Run Unit Tests on PR +name: Unit Tests on: - pull_request: + check_run: + types: + - created merge_group: + pull_request: + push: workflow_dispatch: workflow_run: workflows: [Build] @@ -10,7 +14,7 @@ on: - completed jobs: container_tests: - if: ${{ ( github.repository_owner == 'chromebrew' ) && ( github.ref_name != 'master' ) }} + if: ${{ github.repository_owner == 'chromebrew' }} strategy: matrix: arch: [x86_64, armv7l, i686] @@ -160,7 +164,7 @@ jobs: GITHUB_EVENT: ${{ github.event_name }} run: | case $GITHUB_EVENT in - merge_group) + check_run | merge_group | push | workflow_run | workflow_dispatch) export CREW_REPO="${{ github.event.repository.clone_url }}" export CREW_BRANCH="${{ github.ref_name }}" ;; @@ -168,10 +172,6 @@ jobs: export CREW_REPO="${{ github.event.pull_request.head.repo.clone_url }}" export CREW_BRANCH="${{ github.head_ref }}" ;; - workflow_dispatch) - export CREW_REPO="${{ github.event.repository.clone_url }}" - export CREW_BRANCH="${{ github.ref_name }}" - ;; esac if [ -z "${NON_PKG_CHANGED_FILES}" ] && ([ "$PLATFORM" == 'linux/arm/v7' ] && [ -z "${ARMV7L_PACKAGES}" ]); then # Exit the arm container if there are neither non-package changed files nor armv7l compatible packages. diff --git a/.github/workflows/autocheck.yml b/.github/workflows/autocheck.yml new file mode 100644 index 000000000..0ce65c135 --- /dev/null +++ b/.github/workflows/autocheck.yml @@ -0,0 +1,18 @@ +--- +name: autocheck +on: + schedule: + - cron: '*/5 * * * *' +jobs: + autocheck: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: true + - name: Run required checks if necessary + run: | + for pr in $(gh pr list -s open --author app/github-actions --json number | jq '.[].number') + do + gh pr checks --required $pr || (echo "Flipping pr ${pr} state." ; gh pr close $pr && gh pr reopen $pr) + done diff --git a/manifest/armv7l/a/autoconf_archive.filelist b/manifest/armv7l/a/autoconf_archive.filelist index 6bb5d945f..00569d87c 100644 --- a/manifest/armv7l/a/autoconf_archive.filelist +++ b/manifest/armv7l/a/autoconf_archive.filelist @@ -64,8 +64,10 @@ /usr/local/share/aclocal/ax_cache_size.m4 /usr/local/share/aclocal/ax_caolan_check_package.m4 /usr/local/share/aclocal/ax_caolan_search_package.m4 +/usr/local/share/aclocal/ax_cc_attrcommon.m4 /usr/local/share/aclocal/ax_cc_for_build.m4 /usr/local/share/aclocal/ax_cc_maxopt.m4 +/usr/local/share/aclocal/ax_cc_tentdef.m4 /usr/local/share/aclocal/ax_cf_ebcdic.m4 /usr/local/share/aclocal/ax_cflags_aix_option.m4 /usr/local/share/aclocal/ax_cflags_force_c89.m4 @@ -335,7 +337,9 @@ /usr/local/share/aclocal/ax_func_mkdir.m4 /usr/local/share/aclocal/ax_func_posix_memalign.m4 /usr/local/share/aclocal/ax_func_snprintf.m4 +/usr/local/share/aclocal/ax_func_which_gethostbyaddr_r.m4 /usr/local/share/aclocal/ax_func_which_gethostbyname_r.m4 +/usr/local/share/aclocal/ax_func_which_gethostent_r.m4 /usr/local/share/aclocal/ax_func_which_getservbyname_r.m4 /usr/local/share/aclocal/ax_gcc_archflag.m4 /usr/local/share/aclocal/ax_gcc_builtin.m4 diff --git a/manifest/i686/a/autoconf_archive.filelist b/manifest/i686/a/autoconf_archive.filelist index 6bb5d945f..00569d87c 100644 --- a/manifest/i686/a/autoconf_archive.filelist +++ b/manifest/i686/a/autoconf_archive.filelist @@ -64,8 +64,10 @@ /usr/local/share/aclocal/ax_cache_size.m4 /usr/local/share/aclocal/ax_caolan_check_package.m4 /usr/local/share/aclocal/ax_caolan_search_package.m4 +/usr/local/share/aclocal/ax_cc_attrcommon.m4 /usr/local/share/aclocal/ax_cc_for_build.m4 /usr/local/share/aclocal/ax_cc_maxopt.m4 +/usr/local/share/aclocal/ax_cc_tentdef.m4 /usr/local/share/aclocal/ax_cf_ebcdic.m4 /usr/local/share/aclocal/ax_cflags_aix_option.m4 /usr/local/share/aclocal/ax_cflags_force_c89.m4 @@ -335,7 +337,9 @@ /usr/local/share/aclocal/ax_func_mkdir.m4 /usr/local/share/aclocal/ax_func_posix_memalign.m4 /usr/local/share/aclocal/ax_func_snprintf.m4 +/usr/local/share/aclocal/ax_func_which_gethostbyaddr_r.m4 /usr/local/share/aclocal/ax_func_which_gethostbyname_r.m4 +/usr/local/share/aclocal/ax_func_which_gethostent_r.m4 /usr/local/share/aclocal/ax_func_which_getservbyname_r.m4 /usr/local/share/aclocal/ax_gcc_archflag.m4 /usr/local/share/aclocal/ax_gcc_builtin.m4 diff --git a/manifest/x86_64/a/autoconf_archive.filelist b/manifest/x86_64/a/autoconf_archive.filelist index 6bb5d945f..00569d87c 100644 --- a/manifest/x86_64/a/autoconf_archive.filelist +++ b/manifest/x86_64/a/autoconf_archive.filelist @@ -64,8 +64,10 @@ /usr/local/share/aclocal/ax_cache_size.m4 /usr/local/share/aclocal/ax_caolan_check_package.m4 /usr/local/share/aclocal/ax_caolan_search_package.m4 +/usr/local/share/aclocal/ax_cc_attrcommon.m4 /usr/local/share/aclocal/ax_cc_for_build.m4 /usr/local/share/aclocal/ax_cc_maxopt.m4 +/usr/local/share/aclocal/ax_cc_tentdef.m4 /usr/local/share/aclocal/ax_cf_ebcdic.m4 /usr/local/share/aclocal/ax_cflags_aix_option.m4 /usr/local/share/aclocal/ax_cflags_force_c89.m4 @@ -335,7 +337,9 @@ /usr/local/share/aclocal/ax_func_mkdir.m4 /usr/local/share/aclocal/ax_func_posix_memalign.m4 /usr/local/share/aclocal/ax_func_snprintf.m4 +/usr/local/share/aclocal/ax_func_which_gethostbyaddr_r.m4 /usr/local/share/aclocal/ax_func_which_gethostbyname_r.m4 +/usr/local/share/aclocal/ax_func_which_gethostent_r.m4 /usr/local/share/aclocal/ax_func_which_getservbyname_r.m4 /usr/local/share/aclocal/ax_gcc_archflag.m4 /usr/local/share/aclocal/ax_gcc_builtin.m4 diff --git a/packages/autoconf_archive.rb b/packages/autoconf_archive.rb index 479f17aaf..5278d8d29 100644 --- a/packages/autoconf_archive.rb +++ b/packages/autoconf_archive.rb @@ -3,7 +3,7 @@ require 'buildsystems/autotools' class Autoconf_archive < Autotools description 'GNU Autoconf Archive is a collection of freely re-usable Autoconf macros.' homepage 'https://www.gnu.org/software/autoconf-archive/' - version '2023.02.20' + version '2024.10.16' license 'GPL-3' compatibility 'all' source_url "https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-#{version}.tar.xz" @@ -11,9 +11,9 @@ class Autoconf_archive < Autotools binary_compression 'tar.zst' binary_sha256({ - aarch64: '538076c9589edd796a25e62ddce771d92169db79179ed32755dc2eee0717ea3d', - armv7l: '538076c9589edd796a25e62ddce771d92169db79179ed32755dc2eee0717ea3d', - i686: '9c0c8fc457fe4d79ca1e5d12f51122c984ac5c3c2dfa07a8ef06bc0df32623be', - x86_64: '7729228006a55364e4dad960a9ff78e32cd3675cbdbde1960fe6f676b06f5846' + aarch64: '3e08a3bf59c5973ec5fee59d4692fd266d8082c753fca0f8dcc27448da44ba8a', + armv7l: '3e08a3bf59c5973ec5fee59d4692fd266d8082c753fca0f8dcc27448da44ba8a', + i686: '8a69c686eb94611f432847d68b8d8fa3787548d002072266e9807635c878c30b', + x86_64: 'dc9e54c5af6fb9271d4c5599f50f2d98f311f3550ad326b45f48eb7484255a29' }) end