forked from shoaky009/Playnite.Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1019 Bytes
/
dotnet-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
name: .NET CI
on:
workflow_dispatch:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
build:
runs-on: windows-latest
env:
SOLUTION: src/Playnite.Extensions.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# required for LangVersion 10
- name: Setup .NET 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Clear local NuGet cache (workaround for failed restores on windows-latest)
run: dotnet clean $env:SOLUTION && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore $env:SOLUTION
- name: Build
run: dotnet build $env:SOLUTION --no-restore
- name: Packup
run: zip -j /tmp/ci.zip out/*.pext
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: ci.zip
path: |
/tmp/ci.zip