fix: downgrade GitHub Actions versions for manylinux2014 compatibility
- Use actions/checkout@v3 instead of v4 (Node.js 16 vs 20) - Use actions/setup-python@v4 instead of v5 - Use actions/upload-artifact@v3 and download-artifact@v3 - This fixes GLIBC version errors in manylinux2014 containers - manylinux2014 (CentOS 7) has glibc 2.17 but Node.js 20 needs 2.25+
This commit is contained in:
7
.github/workflows/build-reusable.yml
vendored
7
.github/workflows/build-reusable.yml
vendored
@@ -43,14 +43,15 @@ jobs:
|
||||
container: ${{ matrix.container }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# Use v3 for manylinux2014 compatibility (Node.js 16 instead of 20)
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.ref }}
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup Python (macOS and regular Ubuntu)
|
||||
if: matrix.container == ''
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v4 # v4 for better compatibility
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
@@ -223,7 +224,7 @@ jobs:
|
||||
find packages/*/dist -name "*.whl" -o -name "*.tar.gz" | sort
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3 # v3 for manylinux2014 compatibility
|
||||
with:
|
||||
name: packages-${{ matrix.os }}-py${{ matrix.python }}
|
||||
path: packages/*/dist/
|
||||
6
.github/workflows/release-manual.yml
vendored
6
.github/workflows/release-manual.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
commit-sha: ${{ steps.push.outputs.commit-sha }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3 # Compatibility with manylinux2014
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
@@ -57,12 +57,12 @@ jobs:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3 # Consistency with build workflow
|
||||
with:
|
||||
ref: ${{ needs.update-version.outputs.commit-sha }}
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3 # Match upload-artifact version
|
||||
with:
|
||||
path: dist-artifacts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user