From 06d6173c1a087b077f37b53c62c489ae913b61df Mon Sep 17 00:00:00 2001 From: dagou Date: Tue, 2 Jul 2024 17:27:53 +0800 Subject: [PATCH] bug fix --- .github/workflows/rust.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f650c61..25ba2e1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -100,7 +100,13 @@ jobs: if: matrix.platform == 'ubuntu-20.04' run: | docker run --name centos7-container -v $GITHUB_WORKSPACE:/github/workspace -w /github/workspace centos:7 \ - /bin/bash -c "echo 'baseurl=http://mirror.centos.org/centos/7/os/x86_64/' > /etc/yum.repos.d/CentOS-Base.repo; yum update -y && yum install -y gcc make openssl openssl-devel && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && export PATH=\$HOME/.cargo/bin:\$PATH && cd /github/workspace && cargo build --release" + /bin/bash -c "echo '[base]' > /etc/yum.repos.d/CentOS-Base.repo; \ +echo 'name=CentOS-7 - Base' >> /etc/yum.repos.d/CentOS-Base.repo; \ +echo 'baseurl=http://mirror.centos.org/centos/7/os/x86_64/' >> /etc/yum.repos.d/CentOS-Base.repo; \ +echo 'gpgcheck=1' >> /etc/yum.repos.d/CentOS-Base.repo; \ +echo 'enabled=1' >> /etc/yum.repos.d/CentOS-Base.repo; \ +echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7' >> /etc/yum.repos.d/CentOS-Base.repo; \ +yum update -y && yum install -y gcc make openssl openssl-devel && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && export PATH=\$HOME/.cargo/bin:\$PATH && cd /github/workspace && cargo build --release" mkdir -p ./target/release/packaged_centos7 for binary in $BINARIES_LIST; do