-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 940 Bytes
/
build.yml
File metadata and controls
36 lines (33 loc) · 940 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
name: NetWintun - Build & Pack
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: [ "main", "develop" ]
env:
BUILD_NUMBER: ${{ github.run_number }}
jobs:
build-pack:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Wintun
uses: ./.github/actions/setup-wintun
with:
checksum: ${{ vars.WINTUN_CHECKSUM }}
version: ${{ vars.WINTUN_VERSION }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Pack
run: dotnet pack -c Release --no-build src/NetWintun
- name: Upload nupkg
uses: actions/upload-artifact@v7
with:
name: NetWintun-nupkg
path: src/NetWintun/bin/Release/NetWintun.*.nupkg