zip -> 7z #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-windows | |
on: | |
workflow_dispatch: null | |
push: | |
branches: [main] | |
jobs: | |
build-windows: | |
name: Build demucs-cxfreeze for Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- run: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 | |
- run: pip install demucs SoundFile cx-Freeze | |
- run: cxfreeze main.py --target-dir=demucs-cxfreeze-win-cuda --target-name=demucs-cxfreeze --packages=torch --includes=demucs.htdemucs | |
- run: Invoke-WebRequest -Uri https://www.7-zip.org/a/7zr.exe -OutFile 7zr.exe | |
- run: Invoke-WebRequest -Uri https://www.7-zip.org/a/7z2201-x64.exe -OutFile 7zInstaller-x64.exe | |
- run: .\7zr.exe x "7zInstaller-x64.exe" | |
- run: .\7z.exe a -m0=lzma2 -mmt=on -mx=9 "demucs-cxfreeze-win-cuda.7z" "demucs-cxfreeze-win-cuda" | |
- uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: release-${{ github.sha }} | |
files: demucs-cxfreeze-win-cuda.7z |