-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (37 loc) · 1.17 KB
/
build.yaml
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: Build FATXTools
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild FATXTools.sln /t:Restore /p:Configuration=Release
# Build the application
- name: Build the application
run: msbuild FATXTools.sln /p:Configuration=Release /p:Platform="Any CPU"
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
# Upload the release build artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: FATXTools-Release
path: FATXTools/bin/Release/