From 008ac8ac5f123348686f4a36780e951cc85882a5 Mon Sep 17 00:00:00 2001 From: edbjunwang Date: Wed, 26 Mar 2025 14:16:25 +0800 Subject: [PATCH] chore: add windows specific packages back --- .github/workflows/matrix-debug.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/matrix-debug.yaml b/.github/workflows/matrix-debug.yaml index 1a256c9..0e1262c 100644 --- a/.github/workflows/matrix-debug.yaml +++ b/.github/workflows/matrix-debug.yaml @@ -75,13 +75,8 @@ jobs: - name: Set Python version shell: bash run: | - if [[ "${{ matrix.name }}" == "windows-x64" ]] ; then - DIST=windows - ARCH=x64 - else - DIST=${{ matrix.distro}}-${{ matrix.distro-version}} - ARCH=${{ matrix.arch }} - fi + DIST=${{ matrix.distro}}-${{ matrix.distro-version}} + ARCH=${{ matrix.arch }} if [[ "$DIST" == "sles-12sp5" ]] || [[ "$DIST" == "el-7" ]] || [[ "$DIST" == "el-9" ]] ; then echo "PYTHON_VERSION=3.9" >> $GITHUB_ENV @@ -117,8 +112,10 @@ jobs: rm -f pip_requirements.txt venv/bin/pip freeze | tee -a requirements.${{ matrix.distro }}-${{ matrix.distro-version }}-${{ matrix.arch }}.txt + + # add windows specific packages back if [[ "${{ matrix.distro }}" == "windows" ]]; then - grep -w win32 requirements.txt >> requirements.${{ matrix.distro }}-${{ matrix.distro-version }}-${{ matrix.arch }}.txt + grep 'sys_platform=="win32"' requirements.txt >> requirements.${{ matrix.distro }}-${{ matrix.distro-version }}-${{ matrix.arch }}.txt fi