Message compression #866
Workflow file for this run
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: .NET - Ubuntu | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request_target: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| statuses: write | |
| jobs: | |
| build-core: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.100-preview.5.25277.114 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - name: Restore dependencies | |
| run: dotnet restore LlmTornado.sln | |
| working-directory: ./src | |
| - name: Build projects for .NET Core | |
| run: dotnet build LlmTornado.sln --no-restore --configuration Release -p:GeneratePackageOnBuild=false -p:SkipViteBuild=true | |
| working-directory: ./src | |
| - name: Update GitHub status check | |
| if: always() | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const status = '${{ job.status }}'; | |
| await github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.payload.pull_request?.head.sha || context.sha, | |
| state: status === 'success' ? 'success' : 'failure', | |
| context: 'Build .NET Core', | |
| description: `The .NET Core build ${status === 'success' ? 'passed' : 'failed'}`, | |
| target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` | |
| }); | |
| build-netfw: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.100-preview.5.25277.114' | |
| - name: Restore dependencies for LlmTornado | |
| run: dotnet restore LlmTornado.sln | |
| working-directory: ./src/LlmTornado | |
| - name: Build LlmTornado for .NET Framework | |
| run: dotnet build LlmTornado.sln --no-restore --framework net462 --configuration Release | |
| working-directory: ./src/LlmTornado | |
| - name: Update GitHub status check for .NET Framework build | |
| if: always() | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const status = '${{ job.status }}'; | |
| await github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.payload.pull_request?.head.sha || context.sha, | |
| state: status === 'success' ? 'success' : 'failure', | |
| context: 'Build .NET Framework 4.6.2', | |
| description: `The .NET Framework 4.6.2 build ${status === 'success' ? 'passed' : 'failed'}`, | |
| target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` | |
| }); | |
| build-netstandard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.100-preview.5.25277.114' | |
| - name: Restore dependencies for LlmTornado | |
| run: dotnet restore LlmTornado.sln | |
| working-directory: ./src/LlmTornado | |
| - name: Build LlmTornado for .NET Standard 2.0 | |
| run: dotnet build LlmTornado.sln --no-restore --framework netstandard2.0 --configuration Release | |
| working-directory: ./src/LlmTornado | |
| - name: Update GitHub status check for .NET Standard build | |
| if: always() | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const status = '${{ job.status }}'; | |
| await github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.payload.pull_request?.head.sha || context.sha, | |
| state: status === 'success' ? 'success' : 'failure', | |
| context: 'Build .NET Standard 2.0', | |
| description: `The .NET Standard 2.0 build ${status === 'success' ? 'passed' : 'failed'}`, | |
| target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` | |
| }); |