!test: 对terminal.ugc中的SLA行加以去重,否则(在 f76a8ae2 的策略下)会无法通过测例 #51
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 | |