diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f96170b1f..2aa4262a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/download-file-action@v1.0.3 + 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/download-file-action@v1.0.3 - 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 }}/*