Skip to content

Commit

Permalink
refactor(build.yml): Simplify dependency installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Nov 22, 2024
1 parent ff5dc57 commit 2028c01
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit 2028c01

Please sign in to comment.