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 }}
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
# Use v3 for manylinux2014 compatibility (Node.js 16 instead of 20)
|
||||||
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Python (macOS and regular Ubuntu)
|
- name: Setup Python (macOS and regular Ubuntu)
|
||||||
if: matrix.container == ''
|
if: matrix.container == ''
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v4 # v4 for better compatibility
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
@@ -223,7 +224,7 @@ jobs:
|
|||||||
find packages/*/dist -name "*.whl" -o -name "*.tar.gz" | sort
|
find packages/*/dist -name "*.whl" -o -name "*.tar.gz" | sort
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3 # v3 for manylinux2014 compatibility
|
||||||
with:
|
with:
|
||||||
name: packages-${{ matrix.os }}-py${{ matrix.python }}
|
name: packages-${{ matrix.os }}-py${{ matrix.python }}
|
||||||
path: packages/*/dist/
|
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 }}
|
commit-sha: ${{ steps.push.outputs.commit-sha }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3 # Compatibility with manylinux2014
|
||||||
|
|
||||||
- name: Validate version
|
- name: Validate version
|
||||||
run: |
|
run: |
|
||||||
@@ -57,12 +57,12 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3 # Consistency with build workflow
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.update-version.outputs.commit-sha }}
|
ref: ${{ needs.update-version.outputs.commit-sha }}
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3 # Match upload-artifact version
|
||||||
with:
|
with:
|
||||||
path: dist-artifacts
|
path: dist-artifacts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user