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-mac | |
on: | |
workflow_dispatch: null | |
push: | |
branches: [main] | |
jobs: | |
build-mac: | |
name: Build demucs-cxfreeze for macOS | |
runs-on: macos-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 demucs SoundFile cx-Freeze | |
- run: cxfreeze main.py --target-dir=demucs-cxfreeze-mac --target-name=demucs-cxfreeze --packages=torch --includes=demucs.htdemucs | |
- run: ditto -c -k --sequesterRsrc --keepParent demucs-cxfreeze-mac demucs-cxfreeze-mac.zip | |
- uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: release-${{ github.sha }} | |
files: demucs-cxfreeze-mac.zip |