-
Notifications
You must be signed in to change notification settings - Fork 19
50 lines (39 loc) · 1.1 KB
/
win-build.yml
File metadata and controls
50 lines (39 loc) · 1.1 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
name: win-build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_call:
outputs:
artifact-name:
description: "Windows bits"
value: win-bits
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
name: Checkout Code
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v1.0.5
- name: Setup Just
uses: extractions/setup-just@v3
- name: Build and test
run: just
- name: Check diff
run: just check-diff
- name: Locate nupkg
id: pkg
run: just locate-nupkg $env:GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: win-bits
path: ${{ steps.pkg.outputs.package }}
retention-days: 3