forked from stakira/OpenUtau
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dad88c
commit e94267d
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,18 @@ jobs: | |
version: ${{ inputs.version }} | ||
csproj-files: "OpenUtau/*.csproj" | ||
|
||
- name: download directml dll from nuget | ||
if: ${{ matrix.os.arch == 'win-x64' }} | ||
uses: carlosperate/[email protected] | ||
with: | ||
file-url: https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.12.0 | ||
file-name: Microsoft.AI.DirectML.nupkg | ||
location: . | ||
|
||
- name: extract directml | ||
if: ${{ matrix.os.arch == 'win-x64' }} | ||
run: tar -xf Microsoft.AI.DirectML.nupkg -C Microsoft.AI.DirectML | ||
|
||
- name: restore x64 | ||
run: dotnet restore OpenUtau -r ${{ matrix.os.arch }} | ||
|
||
|
@@ -47,15 +59,6 @@ jobs: | |
if: ${{ matrix.os.arch == 'osx-x64' || matrix.os.arch == 'linux-x64' }} | ||
run: cp OpenUtau.Plugin.Builtin/bin/Release/netstandard2.1/OpenUtau.Plugin.Builtin.dll bin/${{ matrix.os.arch }} | ||
|
||
#手动添加directml.dll的临时方案 | ||
- name: add directml.dll (windows) | ||
if: ${{ matrix.os.arch == 'win-x64' }} | ||
uses: carlosperate/[email protected] | ||
with: | ||
file-url: https://github.com/xunmengshe/OpenUtau/releases/download/0.0.0.1/DirectML.dll | ||
file-name: DirectML.dll | ||
location: ./bin/${{ matrix.os.arch }}/ | ||
|
||
- name: compress x64 | ||
run: 7z a OpenUtau-${{ matrix.os.arch }}-${{ inputs.version }}.zip ./bin/${{ matrix.os.arch }}/* | ||
|
||
|