From c0760491b96c99105fc3fe5a3af39e114998a104 Mon Sep 17 00:00:00 2001 From: peefy Date: Wed, 31 Jul 2024 12:04:07 +0800 Subject: [PATCH] ci: add git2 in centos7 ci Signed-off-by: peefy --- .github/workflows/build-test-centos7-amd64.yaml | 5 ++++- a.k | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 a.k diff --git a/.github/workflows/build-test-centos7-amd64.yaml b/.github/workflows/build-test-centos7-amd64.yaml index 6d7fe9a2e..f7ffcd1ed 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 && git config --global --add safe.directory /workspace && git add . && git commit -m 'chore: bump llvm version to 7.0' && make && make release" + + - name: Show Artifact Version + run: _build/dist/centos/kclvm/bin/kclvm_cli version - name: Upload Artifact uses: actions/upload-artifact@v4 diff --git a/a.k b/a.k new file mode 100644 index 000000000..a18b0dc85 --- /dev/null +++ b/a.k @@ -0,0 +1,2 @@ +a = 1 +b = "${ asd }"