mirror of
https://github.com/actions/python-versions.git
synced 2026-06-02 01:57:30 +08:00
Update RHEL prerequisites installation in build workflow
This commit is contained in:
14
.github/workflows/build-python-packages.yml
vendored
14
.github/workflows/build-python-packages.yml
vendored
@@ -86,10 +86,13 @@ jobs:
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.13.7' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
- name: Install Git
|
||||
- name: Install prerequisites
|
||||
if: startsWith(matrix.platform, 'rhel')
|
||||
shell: bash
|
||||
run: sudo dnf install -y git
|
||||
run: |
|
||||
RHEL_VERSION=$(rpm -E %rhel)
|
||||
sudo dnf install -y "https://packages.microsoft.com/config/rhel/${RHEL_VERSION}/packages-microsoft-prod.rpm"
|
||||
sudo dnf install -y powershell git
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v6
|
||||
@@ -118,10 +121,13 @@ jobs:
|
||||
env:
|
||||
ARTIFACT_NAME: python-${{ inputs.VERSION || '3.13.7' }}-${{ matrix.platform }}-${{ matrix.arch }}
|
||||
steps:
|
||||
- name: Install Git
|
||||
- name: Install prerequisites
|
||||
if: startsWith(matrix.platform, 'rhel')
|
||||
shell: bash
|
||||
run: sudo dnf install -y git
|
||||
run: |
|
||||
RHEL_VERSION=$(rpm -E %rhel)
|
||||
sudo dnf install -y "https://packages.microsoft.com/config/rhel/${RHEL_VERSION}/packages-microsoft-prod.rpm"
|
||||
sudo dnf install -y powershell git
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
Reference in New Issue
Block a user