-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (33 loc) · 1.08 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
if: >
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
Configuration: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .Net 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x
- name: Clean
run: dotnet clean X4_ComplexCalculator.sln --configuration ${{ matrix.Configuration }} && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c ${{ matrix.Configuration }} --no-restore
- name: Test
run: dotnet test
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: X4_ComplexCalculator-${{ matrix.Configuration }}-${{ github.sha }}
path: X4_ComplexCalculator/bin/${{ matrix.Configuration }}/net8.0-windows7.0