From 22675fb11a51d12187d3f4205bcfda5162503bf6 Mon Sep 17 00:00:00 2001 From: peefy Date: Wed, 31 Jul 2024 11:13:54 +0800 Subject: [PATCH] ci: add git2 in centos7 ci Signed-off-by: peefy --- .github/workflows/build-test-centos7-amd64.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-centos7-amd64.yaml b/.github/workflows/build-test-centos7-amd64.yaml index 6d7fe9a2e..dcc8b6ba5 100644 --- a/.github/workflows/build-test-centos7-amd64.yaml +++ b/.github/workflows/build-test-centos7-amd64.yaml @@ -30,7 +30,10 @@ jobs: docker run --rm \ -v ${{ github.workspace }}:/workspace -w /workspace \ kcllang/kcl-builder:centos7 \ - /bin/bash -c "source ~/.bash_profile && export PATH=$PATH:/opt/build/bin/ && sed -i 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml && make && make release" + /bin/bash -c "yum install -y epel-release curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel asciidoc xmlto docbook2X gcc && rpm --import https://opensource.wandisco.com/RPM-GPG-KEY-WANdisco && wget https://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm && rpm -i wandisco-git-release-7-2.noarch.rpm && yum install git -y && source ~/.bash_profile && export PATH=$PATH:/opt/build/bin/ && sed -i 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml && make && make release" + + - name: Show Artifact Version + run: _build/dist/centos/kclvm/bin/kclvm_cli version - name: Upload Artifact uses: actions/upload-artifact@v4