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 Dec 18, 2023
1 parent 36c5520 commit 655468b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@ jobs:
csproj-files: "OpenUtau/*.csproj"

- name: download directml dll from nuget
if: ${{ matrix.os.arch == 'win-x64' }}
if: ${{ matrix.os.runs-on == 'windows-latest' }}
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' }}
if: ${{ matrix.os.runs-on == 'windows-latest' }}
run: |
mkdir Microsoft.AI.DirectML
tar -xf Microsoft.AI.DirectML.nupkg -C Microsoft.AI.DirectML
- name: restore x64
- name: restore
run: dotnet restore OpenUtau -r ${{ matrix.os.arch }}

- name: build x64
- name: build
run: dotnet publish OpenUtau -c Release -r ${{ matrix.os.arch }} --self-contained true -o bin/${{ matrix.os.arch }}

- name: add openutau.plugins.builtin
shell: pwsh
run: copy OpenUtau.Plugin.Builtin\bin\Release\netstandard2.1\OpenUtau.Plugin.Builtin.dll -Destination bin\${{ matrix.os.arch }}

- name: compress x64
- name: compress
run: 7z a OpenUtau-${{ matrix.os.arch }}-${{ inputs.version }}.zip ./bin/${{ matrix.os.arch }}/*

- name: download vocoder
Expand All @@ -86,17 +86,17 @@ jobs:
- name: extract rhythmizer
run: 7z x -o"./bin/${{ matrix.os.arch }}/Dependencies/rhythmizer_zh_opencpop_strict" ./rhythmizer_zh_opencpop_strict.oudep

- name: compress x64 DiffsingerPack
- name: compress DiffsingerPack
if: ${{ matrix.os.runs-on == 'windows-latest' }}
run: 7z a OpenUtau-${{ matrix.os.arch }}-${{ inputs.version }}-DiffsingerPack.zip ./bin/${{ matrix.os.arch }}/*

- name: Upload artifact x64
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: OpenUtau-${{ matrix.os.arch }}-${{ inputs.version }}.zip
path: OpenUtau-${{ matrix.os.arch }}-${{ inputs.version }}.zip

- name: Upload artifact x64 DiffsingerPack
- name: Upload artifact DiffsingerPack
if: ${{ matrix.os.runs-on == 'windows-latest' }}
uses: actions/upload-artifact@v1.0.0
with:
Expand Down

0 comments on commit 655468b

Please sign in to comment.