Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oxygen-dioxide authored Oct 22, 2023
1 parent 3dad88c commit e94267d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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 }}/*

Expand Down

0 comments on commit e94267d

Please sign in to comment.