Skip to content

Commit

Permalink
Remove x86 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sabihoshi committed May 19, 2021
1 parent 96eed7c commit 952c5a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
runtime: ["win-x64", "win-x86"]

steps:
- name: Get tag version
Expand All @@ -26,20 +22,20 @@ jobs:
dotnet-version: 5.0.x

- name: Publish with dotnet
run: dotnet publish GenshinLyreMidiPlayer.WPF -r ${{ matrix.runtime }} -c Release -o .\output --self-contained false -p:PublishSingleFile=true
run: dotnet publish GenshinLyreMidiPlayer.WPF -r win-x64 -c Release -o .\output --self-contained false -p:PublishSingleFile=true

- name: Zip release
run: 7z a GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_${{ matrix.runtime }}.zip .\output\*
run: 7z a GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_win-x64.zip .\output\*

- name: 7Zip release
run: 7z a GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_${{ matrix.runtime }}.7z .\output\*
run: 7z a GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_win-x64.7z .\output\*

- name: Create Release
uses: ncipollo/release-action@v1.8.4
with:
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
artifacts: ./GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_${{ matrix.runtime }}.zip,./GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_${{ matrix.runtime }}.7z
artifacts: ./GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_win-x64.zip,./GenshinLyreMidiPlayer_${{ steps.tag.outputs.VERSION }}_win-x64.7z
artifactContentType: application/zip
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ If you just want to run the program, there are precompiled releases that can be
git clone https://github.com/sabihoshi/GenshinLyreMidiPlayer.git
cd GenshinLyreMidiPlayer
dotnet publish GenshinLyreMidiPlayer.WPF -r win-x86 ^
dotnet publish GenshinLyreMidiPlayer.WPF -r win-x64 ^
-c Release --self-contained false -p:PublishSingleFile=true
```
> For other runtimes, visit the [RID Catalog](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog) and change the runtime value.
Expand Down

0 comments on commit 952c5a8

Please sign in to comment.