From 2028c013374834ceef16c5b93bd7b07ca1ac9402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=89=E9=BB=98=E3=81=AE=E9=87=91?= <110812055+chenmozhijin@users.noreply.github.com> Date: Sat, 23 Nov 2024 00:03:26 +0800 Subject: [PATCH] refactor(build.yml): Simplify dependency installation steps --- .github/workflows/build.yml | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 958f935..329200b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,31 +49,10 @@ jobs: echo "nuitka_arch=universal" >> $GITHUB_OUTPUT fi - - name: Install dependencies(Linux/macOS) - if : ${{ runner.os == 'Linux' || runner.os == 'macOS'}} + - name: Install dependencies run: | pip install -Ur requirements.txt pip install imageio PySide6_Addons - - - name: Install dependencies(Windows) - if: ${{ runner.os == 'Windows' }} - run: | - pip install PySide6-Addons - $qt_translations_path = python build_helper.py --task get_qt_translations_path - $temp_path = $env:TEMP + "\qt_translations" - if (!(Test-Path -Path $temp_path)) { - New-Item -ItemType Directory -Path $temp_path - } - Copy-Item "$qt_translations_path/*.qm" -Destination $temp_path - pip freeze | Out-File "$env:TEMP\modules.txt" - pip uninstall -r "$env:TEMP\modules.txt" -y - - pip install -Ur requirements.txt - pip install imageio - - Copy-Item -Force "$temp_path\*.qm" -Destination "$qt_translations_path/" - Get-ChildItem -Path "$qt_translations_path/" - - name: Install EGL/upx if: ${{ runner.os == 'Linux' }}