From 22097cffa6baff9759db5480ae7aa4016743f2fd Mon Sep 17 00:00:00 2001 From: Priyagupta108 Date: Wed, 27 May 2026 17:12:54 +0530 Subject: [PATCH] Update RHEL prerequisites installation in build workflow --- .github/workflows/build-python-packages.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 71e58ec..7c9aebe 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -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