-
Notifications
You must be signed in to change notification settings - Fork 66
38 lines (32 loc) · 1018 Bytes
/
Copy pathCompile.yml
File metadata and controls
38 lines (32 loc) · 1018 Bytes
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
name: Compile solution
on:
push:
branches:
- '**'
pull_request:
jobs:
windows:
name: windows-2025
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Build.props', 'Directory.Packages.props') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Compile solution
run: dotnet run -c Release
working-directory: "build"
env:
DOTNET_ENVIRONMENT: ${{ github.ref_name == 'main' && 'Production' || 'Development' }}
- name: Validate templates
if: github.event_name == 'pull_request'
run: dotnet run -c Release -- pack test
working-directory: "build"
env:
DOTNET_ENVIRONMENT: ${{ github.ref_name == 'main' && 'Production' || 'Development' }}