From patchwork Fri Mar 3 13:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 13158829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F319AC678D4 for ; Fri, 3 Mar 2023 13:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231171AbjCCNrB (ORCPT ); Fri, 3 Mar 2023 08:47:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjCCNq7 (ORCPT ); Fri, 3 Mar 2023 08:46:59 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC6945507F for ; Fri, 3 Mar 2023 05:46:56 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id n6so2706018plf.5 for ; Fri, 03 Mar 2023 05:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WHaduuJjt5wL13miaDpxITC3g1nqWps7NMgzcDaHVM0=; b=kk3NIYBMsPUc/Wb1k8xb0WGLucPSF9vBHurG9da8+Q3gAh9M96InZutGMrIfJ05hix YOpctlGU4IYEJWeJ4JGUZ/xIUjaCuoFdKpKDJMspo91soVQyS4mV3qBHOPkgWB+Z9hzx hW/B+1Nqm/w+cu4t7qMhte9uPsX5XcXSiaIeuuGXCeBWSQsU37AHYp0lT/81AmSEoig+ vPCJkrazSjqd150dqimjshcx0OEvwm9vGvFwrce88t65zFyINFB0kodOlrsYy6H3Fvi0 HMFZ1x/uPzDdgn43SGpT8YH2vQ48z1h+Egp32UUstAFOcxmYUPUY/fHOJDP2oqF5sVPK 6i/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WHaduuJjt5wL13miaDpxITC3g1nqWps7NMgzcDaHVM0=; b=hX8kuxuwmBWybC8TfNs/T7ip+D4GO3YC6bKaL7m5SyR1YKpuTKXCSMj9i2yteCu9M9 J8009aLLj/mTpk89eCvFRDs4GWAWM3CgGWvtzaXlAF/b8J/6ZmBtC3ooutio28nt1HA1 U1OO74hqwbVk0i062v8SyytddLLX2dmVrsLlqacnEFe/m9FvQJw8zdKOKhX6+v6rnbVe MBc5CTS5jY9a8QqjW1OD3kTYroCH9IQOizG1It/EmsNGWW/cYS50ZDjnE/7++9c/9LwS 4AgLrWSUkNsdtr0QHmB0O+kY7Qjc0bLtkc0Sm6XyazM9vqJaDdKFpKtiWo6BPF1Oejix VZcw== X-Gm-Message-State: AO0yUKWxWHnIuzT8UMmWzklHs2geXmjZXXSIZ77AwGZ3xXpWRhiRm4kd yxribp9jetWcxD/5tFqbqaZRj6tOhzc= X-Google-Smtp-Source: AK7set9MwCDuc/rO05ioojhHso8Quw1oF+e25tGC2PNjUaD1+sijGQqaXunFDC4gw4waP5+K1qDPxg== X-Received: by 2002:a17:90b:1d08:b0:238:e9:8994 with SMTP id on8-20020a17090b1d0800b0023800e98994mr1850428pjb.0.1677851216238; Fri, 03 Mar 2023 05:46:56 -0800 (PST) Received: from localhost.localdomain ([113.172.118.59]) by smtp.gmail.com with ESMTPSA id m21-20020a17090aab1500b00234465cd2a7sm1536138pjq.56.2023.03.03.05.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:46:55 -0800 (PST) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= Subject: [PATCH 1/4] ci/lib.sh: remove an useless break Date: Fri, 3 Mar 2023 20:46:03 +0700 Message-Id: X-Mailer: git-send-email 2.40.0.rc1.2.gd15644fe02 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This statement was silently skipped for a long time. > ci/lib.sh: line 232: break: only meaningful in a `for', `while', or `until' loop Signed-off-by: Đoàn Trần Công Danh --- ci/lib.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ci/lib.sh b/ci/lib.sh index db7105e8a8..661076e70b 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -227,11 +227,6 @@ export SKIP_DASHED_BUILT_INS=YesPlease case "$runs_on_pool" in ubuntu-*) - if test "$jobname" = "linux-gcc-default" - then - break - fi - PYTHON_PACKAGE=python2 if test "$jobname" = linux-gcc then From patchwork Fri Mar 3 13:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 13158830 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD545C64EC4 for ; Fri, 3 Mar 2023 13:47:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbjCCNrC (ORCPT ); Fri, 3 Mar 2023 08:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjCCNrA (ORCPT ); Fri, 3 Mar 2023 08:47:00 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952AE515E5 for ; Fri, 3 Mar 2023 05:46:58 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so6166117pjb.3 for ; Fri, 03 Mar 2023 05:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pdyCxZCYLwiorNCxFZ8Of3ERj71TksIvug6vWvmJGv8=; b=Ux04Dwd+a64yc71olgCwzj+dMY2AknVtOILDgfIexQILkAvb7s34H5bknTUT2BUdwT YguoxDAmCIPQpFil+wHADrMt5wUhWueSE8ainsTiRPxUV3angKYc2pTUZfgVG/xdKIeB FReRRehin9epIglQnTRA1QMtjMf9iHzZcwYFYFY6Anr/Wk00RchUflj5FzsxoGK3zBUI nn4Blci2gbVixqYjOvsVpr3Awtf4CDpAC3otFHp0pLqPeoOwVdx6iEQS9zNZF+i7Dkyv CdEcQeTUU4o+ZVZoEpdCPpfq5qNTwK8Sf4CuK/POUwCC8FOkxa57c9TQedU6rUUJr219 d3tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pdyCxZCYLwiorNCxFZ8Of3ERj71TksIvug6vWvmJGv8=; b=x/B+qV/LIPL82ThLibrTu9A/XKcjX0aQli/HgERbL3fogvu4dhmEOWBgdFcZMdBn56 uR21CEDrRa/h6CpACPL10kBUvTEknu71SOkIFjBTP6BO6Pu0ZpemBfOylMFfSeK73784 hAsDoyvS6NAet5ORbD1KN2w6o96DbqfMPcKXVc0VLKdllYtoxhR3WwjmqJcFQBvcRVTB /jadr9X1HvvuCPLqb17k92qPv9YCqzIKmTkBf2BwzRhqt/UH0K8311JIYTZSMnBk5pIJ HJFGlkLUrNTZXLebA4+gWbumU9GunNjS0Kk4/7Qyl0/GnZq8P4KCHIVveihRSiSHutqn lg8w== X-Gm-Message-State: AO0yUKWN0dfFrZm5U6VbaqwuFjVLDbjNxZfGj2SDQf/ff+61JoIQ7C+f oBAQ+v9KLRnZCa4+5HlWzxpX1+DnoSw= X-Google-Smtp-Source: AK7set+tTgg6nxzyJyo0kJP/lsnlQsEg+8vkdF5quYdZt+LYny3rCrkElX9+CJlKjTjoG6fMFhiqeQ== X-Received: by 2002:a17:90b:2353:b0:233:cea2:dac6 with SMTP id ms19-20020a17090b235300b00233cea2dac6mr1581615pjb.47.1677851217868; Fri, 03 Mar 2023 05:46:57 -0800 (PST) Received: from localhost.localdomain ([113.172.118.59]) by smtp.gmail.com with ESMTPSA id m21-20020a17090aab1500b00234465cd2a7sm1536138pjq.56.2023.03.03.05.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:46:57 -0800 (PST) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= Subject: [PATCH 2/4] ci/install-dependencies: libify p4 and git-lfs installation Date: Fri, 3 Mar 2023 20:46:04 +0700 Message-Id: <13137839f39bdcbc56eae9e96894b5ebe4072374.1677850518.git.congdanhqx@gmail.com> X-Mailer: git-send-email 2.40.0.rc1.2.gd15644fe02 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org In a later change, we will install git-lfs for CircleCI test environment. Let move those installations out in order to reuse them. Signed-off-by: Đoàn Trần Công Danh --- ci/install-dependencies.sh | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 4f407530d3..9a32af8968 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -6,16 +6,12 @@ . ${0%/*}/lib.sh P4WHENCE=https://cdist2.perforce.com/perforce/r21.2 -LFSWHENCE=https://github.com/github/git-lfs/releases/download/v$LINUX_GIT_LFS_VERSION +LFSWHENCE=https://github.com/github/git-lfs/releases/download UBUNTU_COMMON_PKGS="make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl libemail-valid-perl libio-socket-ssl-perl libnet-smtp-ssl-perl" -case "$runs_on_pool" in -ubuntu-*) - sudo apt-get -q update - sudo apt-get -q -y install language-pack-is libsvn-perl apache2 \ - $UBUNTU_COMMON_PKGS $CC_PACKAGE $PYTHON_PACKAGE +_install_linux_p4() { mkdir --parents "$P4_PATH" pushd "$P4_PATH" wget --quiet "$P4WHENCE/bin.linux26x86_64/p4d" @@ -23,12 +19,36 @@ ubuntu-*) chmod u+x p4d chmod u+x p4 popd +} + +_install_linux_git_lfs() { + local whence fname + whence="$1" + fname="$2" mkdir --parents "$GIT_LFS_PATH" pushd "$GIT_LFS_PATH" - wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" - tar --extract --gunzip --file "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" - cp git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs . + wget --quiet "$whence/$fname" + tar --extract --gunzip --strip-components=1 --file "$fname" popd +} + +case "$runs_on_pool" in +ubuntu-*) + sudo apt-get -q update + sudo apt-get -q -y install language-pack-is libsvn-perl apache2 \ + $UBUNTU_COMMON_PKGS $CC_PACKAGE $PYTHON_PACKAGE + + case "$(uname -m)" in + x86_64) + _install_linux_p4 + _install_linux_git_lfs "$LFSWHENCE/v${LINUX_GIT_LFS_VERSION}" \ + "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" + ;; + *) + echo "Not supported architecture" >&2 + exit 1 + ;; + esac ;; macos-*) export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 From patchwork Fri Mar 3 13:46:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 13158831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42F28C678D4 for ; Fri, 3 Mar 2023 13:47:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjCCNrI (ORCPT ); Fri, 3 Mar 2023 08:47:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbjCCNrB (ORCPT ); Fri, 3 Mar 2023 08:47:01 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BD95A6D7 for ; Fri, 3 Mar 2023 05:47:00 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so2317023pjz.1 for ; Fri, 03 Mar 2023 05:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dUP9l/VnRgfTpbHyFC1ulZFIyi30PvF+dP+5HiynElY=; b=moO1uliuByV9l1cVu3JNjZ4vU7ggPRxvkv1a9V0XqFx4+BpM7kYteqxI++Cy5pFvO5 zGUuMI9TXlAQuYmtxFrwps7agTWi4uv+ZaPmGZL9oxqO7fkHvMg4I2I8CtSaMLmthOTj i1taUOt0pIOAR1Lm8MR/nx7ZFw2NSClGVb8YKBacWEOix6juPOTq/JiNMP/DCGlsuZ2n D5evgl7OIAABx3A96SFYfD67FoW62PI8S3F7jL/7ixw5IgLf5Pq4CbNMwQa0mKTpkIhP /Na4xtnNw7+adLpWk8Gh0AaFJ90CvA5aMAxCTd0I8cN87JA5fX5lXtyfOE86VyakzHNv ld2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dUP9l/VnRgfTpbHyFC1ulZFIyi30PvF+dP+5HiynElY=; b=NjS4G0tdEHDktJzTVBjfcOwN8D9/Sk2gt5Vl9dKow9uKIz8InFnrbzkbO35YI3tWRV kDirajGYJskn26qu7DfY7OrhL7AoBdyXKUl8gjecSxn4lkOBEakVaLZSPv+uUHYv4DTC njyH1DgsGb3ddkttdHuKpERvQP5Khl2PphOnpdMoC7OnIk/VQ/aVK+iMtN8pnFBj3oCL 9roTali5zv0p0QsWRjbQERF7QFqcZ+TzsWBNgXMai4895lfQo2hHbfPqbETZ1t2os6mP A5OeidNVyxBHT9g/d/Et/RnaIV+wVO8yZOL7mTVPzvw0yZjFq4P5m7qlnaxBpvEYupt1 F5NA== X-Gm-Message-State: AO0yUKVUTBldKkDEQyOlXVhEkW/TqaBpqzWyli8XtG7LBeHpXb30PlQW 73rS936FMhzRDlzweBjN5GXD85U+lUk= X-Google-Smtp-Source: AK7set95A/CHjWhH2JwyqXBtTdUV2M/xtik39l3H1t/sZ95yt25nRa8BL3U6LwK+Bo2oYhQq22ja/A== X-Received: by 2002:a17:90a:184:b0:233:bc78:b47f with SMTP id 4-20020a17090a018400b00233bc78b47fmr1585502pjc.49.1677851219475; Fri, 03 Mar 2023 05:46:59 -0800 (PST) Received: from localhost.localdomain ([113.172.118.59]) by smtp.gmail.com with ESMTPSA id m21-20020a17090aab1500b00234465cd2a7sm1536138pjq.56.2023.03.03.05.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:46:59 -0800 (PST) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= Subject: [PATCH 3/4] ci/install-dependencies: install git-lfs for arm64 build Date: Fri, 3 Mar 2023 20:46:05 +0700 Message-Id: X-Mailer: git-send-email 2.40.0.rc1.2.gd15644fe02 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Đoàn Trần Công Danh --- ci/install-dependencies.sh | 4 ++++ ci/lib.sh | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 9a32af8968..6d587ffc54 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -44,6 +44,10 @@ ubuntu-*) _install_linux_git_lfs "$LFSWHENCE/v${LINUX_GIT_LFS_VERSION}" \ "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" ;; + aarch64) + _install_linux_git_lfs "$LFSWHENCE/v${LINUX_GIT_LFS_VERSION}" \ + "git-lfs-linux-arm64-v$LINUX_GIT_LFS_VERSION.tar.gz" + ;; *) echo "Not supported architecture" >&2 exit 1 diff --git a/ci/lib.sh b/ci/lib.sh index 661076e70b..3c19267a56 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -242,6 +242,12 @@ ubuntu-*) # image. # Keep that in mind when you encounter a broken OS X build! export LINUX_GIT_LFS_VERSION="1.5.2" + # The Linux arm64 build installs yet another recent version, since + # above version doesn't ship prebuilt binaries for arm64. + if test "$(uname -m)" = aarch64 + then + LINUX_GIT_LFS_VERSION="3.3.0" + fi P4_PATH="$HOME/custom/p4" GIT_LFS_PATH="$HOME/custom/git-lfs" From patchwork Fri Mar 3 13:46:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 13158832 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C605DC64EC4 for ; Fri, 3 Mar 2023 13:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjCCNrK (ORCPT ); Fri, 3 Mar 2023 08:47:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbjCCNrC (ORCPT ); Fri, 3 Mar 2023 08:47:02 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6EBF5B5D9 for ; Fri, 3 Mar 2023 05:47:01 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id kb15so2572060pjb.1 for ; Fri, 03 Mar 2023 05:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W03RoJhsOmVMS8ruNuS10GF6aIF7BhfATmyrZaGW82s=; b=RhTJB/jqLgu0mOWe4JfJ+56EP8XyMQq2/ZVgw9h0e3S869LI8/kCzwWiNunVNa9tVw Iqmr6t6lxutBip6Bg6gQPZ9WUKkioqGnbWhQv3yLCazH2HOI24Pu4u9AjT+rdD2TN5s9 18eMF++B8MRdJgMdj6H+yYNXPVzwOuNUKgXdeCne32BIWtEUz5z5iGKjQJzeoIoEgbSL UKTati236T5FiHcOo1QRqPue9k4l/9wMswGKc/Bzud40mi+XI4JVxFPx2+n6UIrbyJwF HBCY0bi44SmFLNO6J2243cigm/ehoUueZ0ltZfje3tw4DimecO6k7R1zuV2t15axpFvK 8l0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W03RoJhsOmVMS8ruNuS10GF6aIF7BhfATmyrZaGW82s=; b=r2RS7zS5y42MG8qe4lc3mvrUjNpcoss+69zR4lvAgdiKLC/NbRKV4c/8d1lWP0DSSI tDH4edAJPBciaHc5kPKRdZjnsUkAm0eIS+erSu/d2EeiWCvXjVm8bNhhgSdAikO5FbNl hAsJpnVrBFJ6/dH0AhviRLgAzSVo3RT8W9FQPbxLZs4UR43FM9tjltzRVFNTQTw3gtjG 7hcatpShsBII1sszl5emibg303VA2vyb0Hl4yNx5beh9YhguaQlCiHN69sfODsg7R6FV lBdheLgFaXfblk7cUPItO9Mr1DQd1C1YePUjoXYNP8XWmkSLRdAkqiHbveEHqgqwZnOT PCGQ== X-Gm-Message-State: AO0yUKXkP+SbugE10YFVRcSQEI1nEb/syI8ewrcoxp/uXUqkju/bABrD WtgPKTfqxGDCTrfVgdHJKFLP2BDjFpQ= X-Google-Smtp-Source: AK7set+yhR/4MU3SH77O9aYSbPNi9mgYKf1ofVLQLrgm7dTptnwUy+ajzQjOk3qYsKKHH8wo5aRc/w== X-Received: by 2002:a17:90b:4b41:b0:234:86a5:f800 with SMTP id mi1-20020a17090b4b4100b0023486a5f800mr1688013pjb.34.1677851221084; Fri, 03 Mar 2023 05:47:01 -0800 (PST) Received: from localhost.localdomain ([113.172.118.59]) by smtp.gmail.com with ESMTPSA id m21-20020a17090aab1500b00234465cd2a7sm1536138pjq.56.2023.03.03.05.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:47:00 -0800 (PST) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= Subject: [PATCH 4/4] ci: add arm64 CI environment via CircleCI Date: Fri, 3 Mar 2023 20:46:06 +0700 Message-Id: X-Mailer: git-send-email 2.40.0.rc1.2.gd15644fe02 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Đoàn Trần Công Danh --- .circleci/config.yml | 17 +++++++++++++++++ ci/lib.sh | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..2f5e0966b7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +# .circleci/config.yml +jobs: + build: + machine: + image: ubuntu-2004:2022.04.1 + resource_class: arm.medium + environment: + jobname: linux-gcc + runs_on_pool: ubuntu-arm64 + steps: + - checkout + - run: ci/install-dependencies.sh + - run: + name: Build and Tests + command: ci/run-build-and-tests.sh + - store_test_results: + path: t/out diff --git a/ci/lib.sh b/ci/lib.sh index 3c19267a56..8b0c727950 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -201,6 +201,25 @@ then MAKEFLAGS="$MAKEFLAGS --jobs=10" test windows != "$CI_OS_NAME" || GIT_TEST_OPTS="--no-chain-lint --no-bin-wrappers $GIT_TEST_OPTS" +elif test "$CIRCLECI" = true +then + CI_TYPE=circleci + CI_BRANCH="$CIRCLE_BRANCH" + CI_COMMIT="$CIRCLE_SHA1" + CI_JOB_ID="$CIRCLE_WORKFLOW_JOB_ID" + CI_JOB_NUMBER="$CIRCLE_BUILD_NUM" + CI_OS_NAME="$(echo "$AGENT_OS" | tr A-Z a-z)" + test darwin != "$CI_OS_NAME" || CI_OS_NAME=osx + CI_REPO_SLUG="$(expr "$CIRCLE_REPOSITORY_URL" : '.*:\([^/]*/[^/]*\)\.git$')" + CC="${CC:-gcc}" + + # use a subdirectory of the cache dir (because the file share is shared + # among *all* phases) + cache_dir="$HOME/none" + + export GIT_PROVE_OPTS="--timer --jobs 10" + export GIT_TEST_OPTS="--verbose-log -x --write-junit-xml" + MAKEFLAGS="$MAKEFLAGS --jobs=10" else echo "Could not identify CI type" >&2 env >&2