99 description : ' Release tag to attach binaries to (e.g. v0.1.0)'
1010 required : true
1111 type : string
12+ skip_linux :
13+ description : ' Skip Linux build'
14+ required : false
15+ type : boolean
16+ default : false
17+ skip_mac :
18+ description : ' Skip macOS build'
19+ required : false
20+ type : boolean
21+ default : false
22+ skip_windows :
23+ description : ' Skip Windows build'
24+ required : false
25+ type : boolean
26+ default : false
1227
1328permissions :
1429 contents : write
1732 build :
1833 name : Build · ${{ matrix.name }}
1934 runs-on : ${{ matrix.os }}
35+ if : ${{ !matrix.exclude }}
2036 strategy :
2137 fail-fast : false
2238 matrix :
2743 apt_extra : pkg-config libopenblas-dev
2844 install_cuda : true
2945 install_vulkan : true
46+ exclude : ${{ inputs.skip_linux || false }}
3047 - name : macos-arm64-metal
3148 os : macos-latest
49+ exclude : ${{ inputs.skip_mac || false }}
50+ - name : windows-x64
51+ os : windows-latest
52+ install_cuda : true
53+ install_vulkan : true
54+ exclude : ${{ inputs.skip_mac || false }}
3255
3356 steps :
3457 - name : Checkout
@@ -49,13 +72,13 @@ jobs:
4972 create-symlink : true
5073 key : ${{ github.job }}-${{ matrix.os }}
5174
52- - name : Install CUDA toolkit (Linux)
75+ - name : Install CUDA toolkit
5376 uses : Jimver/cuda-toolkit@v0.2.30
5477 if : matrix.install_cuda == true
5578 with :
5679 log-file-suffix : ' ${{matrix.os}}.txt'
5780
58- - name : Install Vulkan SDK (Windows)
81+ - name : Install Vulkan SDK
5982 if : matrix.install_vulkan == true
6083 uses : humbletim/install-vulkan-sdk@v1.2
6184 with :
@@ -137,10 +160,8 @@ jobs:
137160 shell : pwsh
138161 run : |
139162 New-Item -ItemType Directory -Path dist | Out-Null
140- $bins = @('ace-lm','ace-synth','ace-understand','quantize','neural-codec','mp3-codec')
141- foreach ($b in $bins) {
142- Copy-Item "build\Release\$b.exe" dist\
143- }
163+ Copy-Item "build\Release\*.exe" dist\ -ErrorAction SilentlyContinue
164+ Copy-Item "build\Release\*.dll" dist\ -ErrorAction SilentlyContinue
144165 Compress-Archive -Path dist\* -DestinationPath "acestep-${{ matrix.name }}.zip"
145166
146167 - name : Upload to release (Linux / macOS)
0 commit comments