-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (42 loc) · 1.54 KB
/
ci.yml
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
42
43
44
45
46
47
name: CI
on: [push, pull_request]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux, os: ubuntu-latest }
- { name: Windows VS2022, os: windows-2022 }
dotnet:
- { name: .NET 6, version: '6.0.x' }
- { name: .NET 7, version: '7.0.x' }
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET ${{ matrix.dotnet.version }} SDK
id: setup-dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Enforce SDK Version
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
- name: Verify SDK Installation
run: dotnet --info
- name: Install Dependencies
run: dotnet restore AeroMessages/AeroMessages.csproj
- name: Build
run: dotnet build AeroMessages/AeroMessages.csproj --configuration Release --no-restore
- name: Publish
run: dotnet publish AeroMessages/AeroMessages.csproj --configuration Release --no-restore --output AeroMessages/bin/Publish
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: AeroMessages-${{ matrix.platform.os }}-${{ matrix.dotnet.version }}
path: AeroMessages/bin/Publish/AeroMessages.dll