v0.16.0 #140
This file contains 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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-configuration: [Debug, Release] | |
steps: | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Adding /tmp/output | |
run: mkdir -p /tmp/output | |
- name: Build for ${{ matrix.dotnet-configuration }} | |
run: dotnet build --configuration ${{ matrix.dotnet-configuration }} | |
- name: Test for ${{ matrix.dotnet-configuration }} | |
env: | |
MUX_TOKEN_ID: "${{ secrets.MUX_TOKEN_ID }}" | |
MUX_TOKEN_SECRET: "${{ secrets.MUX_TOKEN_SECRET }}" | |
run: dotnet test --configuration ${{ matrix.dotnet-configuration }} --no-build | |
- name: Pack for ${{ matrix.dotnet-configuration }} | |
run: cp README.md icon.png src/Mux.Csharp.Sdk && dotnet pack --configuration ${{ matrix.dotnet-configuration }} --no-build --include-source --include-symbols --property:PackageOutputPath=/tmp/output | |
- name: Uploading artifact for ${{ matrix.dotnet-configuration }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Mux.Csharp.Sdk-${{ matrix.dotnet-configuration }} | |
path: /tmp/output/* |