Fix warnings #43
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
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| types: [ opened, reopened, synchronize ] | |
| workflow_call: | |
| inputs: | |
| platforms: | |
| description: 'Platforms to build for' | |
| required: false | |
| type: string | |
| latest: | |
| description: 'Tag image as latest' | |
| required: false | |
| type: boolean | |
| default: false | |
| workflow_dispatch: | |
| name: ci-build | |
| env: | |
| DOTNET_VERSION: 9.0.x | |
| jobs: | |
| build-sdk: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET SDK ${{ env.DOTNET_VERSION }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Build Base | |
| run: dotnet build -c Release SDK.CSharp/SDK.CSharp.csproj | |
| - name: Pack Base | |
| run: dotnet pack -c Release --no-build -o ./nupkg SDK.CSharp/SDK.CSharp.csproj | |
| - name: Add local package source | |
| run: | | |
| dotnet nuget add source $(pwd)/nupkg --name LocalPackages | |
| - name: Build Hub Extension | |
| run: dotnet build -c Release SDK.CSharp.Hub/SDK.CSharp.Hub.csproj | |
| - name: Pack Hub Extension | |
| run: dotnet pack -c Release --no-build -o ./nupkg SDK.CSharp.Hub/SDK.CSharp.Hub.csproj | |
| - name: Build Live Extension | |
| run: dotnet build -c Release SDK.CSharp.Live/SDK.CSharp.Live.csproj | |
| - name: Pack Live Extension | |
| run: dotnet pack -c Release --no-build -o ./nupkg SDK.CSharp.Live/SDK.CSharp.Live.csproj | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Package | |
| path: | | |
| ./nupkg/*.nupkg | |
| ./nupkg/*.snupkg | |
| retention-days: 7 | |
| if-no-files-found: error |