-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 1.33 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
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@v3
with:
name: Mux.Csharp.Sdk-${{ matrix.dotnet-configuration }}
path: /tmp/output/*