From d77951bc26d2679e12179af4d79dc76315fde441 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Thu, 3 Aug 2023 00:38:22 -0700 Subject: [PATCH] fix(cd): fix git build on el7 --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff3aba5c1cc9..d10bb1dc08d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,6 +144,12 @@ jobs: wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.41.0.tar.gz tar xf git-2.41.0.tar.gz cd git-2.41.0 + + # https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5948/diffs + if [[ ${{ matrix.image }} == "centos:7" ]]; then + echo 'CFLAGS=-std=gnu99' >> config.mak + fi + make configure ./configure --prefix=/usr/local/git make -j$(nproc)