-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (78 loc) · 1.83 KB
/
build-layout.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: 'Build layout'
on:
push:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'src/**'
- 'test/**'
- '*.sln'
- '*.slnf'
- '*.config'
- '*.props'
- '*.targets'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'src/**'
- 'test/**'
- '*.sln'
- '*.slnf'
- '*.config'
- '*.props'
- '*.targets'
defaults:
run:
shell: pwsh
jobs:
build-layout:
name: 'Build layout'
strategy:
matrix:
system:
- windows-2022
- ubuntu-22.04
- macos-14
config:
- Debug
- Release
runs-on: ${{ matrix.system }}
env:
Solution: GeneoGraph.Design.slnf
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Cache packages
uses: actions/cache@v4
with:
key: Layout-NuGet-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
Layout-NuGet-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
Layout-NuGet-${{ runner.os }}-
Layout-NuGet-
path: |
~/.nuget/packages
- name: Restore packages
run: |
dotnet restore $env:Solution
- name: Build application
run: |
dotnet build $env:Solution `
--configuration ${{ matrix.config }} `
--no-restore
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: layout-${{ matrix.system }}-${{ matrix.config }}-${{ github.sha }}
path: bin/${{ matrix.config }}/