-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.38 KB
/
build.yml
File metadata and controls
63 lines (49 loc) · 1.38 KB
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
name: build
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
jobs:
build:
permissions:
contents: write
pull-requests: write
runs-on: windows-latest
env:
Solution_Path: Flow.Launcher.Plugin.DialogJump.Files.sln
Project_Path: build\Build.csproj
steps:
# Checkout codes
- name: Checkout
uses: actions/checkout@v5
# Install the .NET Core workload
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
9.0.x
# Restore dependencies for entire solution
- name: Restore dependencies
run: dotnet restore ${{ env.Solution_Path }}
# Build the entire solution
- name: Build
run: dotnet build ${{ env.Solution_Path }} --configuration Release
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test ${{ env.Solution_Path }} --configuration Release --no-build
# Run the build task
- name: Run build task
run: dotnet run --project ${{ env.Project_Path }}
# Upload the Build package
- name: Upload Build package
uses: actions/upload-artifact@v4
with:
path: |
output/Files Dialog Jump*.zip
compression-level: 0