fix: 修复某些情况下,发生了error等级的错误,但是错误报告被屏蔽、只打印出了一个warning的问题。 #49
This file contains hidden or 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
| name: Build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| permissions: | |
| id-token: write | |
| attestations: write | |
| jobs: | |
| build_windows_cli: | |
| name: Build MuConvert.exe (win-x64) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore MuConvert.slnx | |
| - name: Publish (win-x64) | |
| run: > | |
| dotnet publish MuConvert.csproj | |
| -c Release | |
| -r win-x64 | |
| -o publish/win-x64 | |
| -p:SelfContained=true | |
| -p:UseAppHost=true | |
| -p:PublishSingleFile=true | |
| - name: Print build version | |
| run: publish/win-x64/MuConvert.exe --version | |
| - name: Generate artifact attestation | |
| uses: actions/attest@v4 | |
| with: | |
| subject-path: publish/win-x64/MuConvert.exe | |
| - name: Upload artifact (MuConvert.exe) | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: MuConvert.exe | |
| path: publish/win-x64/MuConvert.exe | |