Skip to content

Commit 565c977

Browse files
committed
ci: use manual git clone for CentOS 7 container
actions/checkout@v3 requires Node.js 20 which needs glibc 2.25+, but CentOS 7 only has glibc 2.17. Use manual git clone instead.
1 parent abd46ad commit 565c977

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ jobs:
1919
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*.repo
2020
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo
2121
22-
- name: Install git
23-
run: yum -y install git
22+
- name: Install git and dependencies
23+
run: yum -y install git python2 python2-pip python-six
2424

25-
- name: Checkout code
26-
uses: actions/checkout@v3
25+
- name: Clone repository
26+
run: git clone --depth 1 --branch ${{ github.ref_name }} https://github.com/${{ github.repository }}.git .
2727

28-
- name: Install dependencies
29-
run: |
30-
yum -y install python2 python2-pip python-six
31-
pip2 install netaddr
28+
- name: Install Python dependencies
29+
run: pip2 install netaddr
3230

3331
- name: Verify Python 2.7 imports
3432
run: |

0 commit comments

Comments
 (0)