-
Notifications
You must be signed in to change notification settings - Fork 42
38 lines (38 loc) · 1.53 KB
/
dotnet.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
name: TankLib
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
- name: Install .NET 8
uses: actions/setup-dotnet@v4
- name: Mutate Run Number
run: |
$num = (997+$($Env:GITHUB_RUN_NUMBER))
echo "GITHUB_RUN_NUMBER_DELTA=$num" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Restore project
run: dotnet restore OverwatchToolchain.sln --verbosity m -r win-x64 -p:TargetFramework=net8.0
- name: Build Release
run: dotnet publish --configuration ReleasePublish -r win-x64 -o dist/Release --self-contained true
# --self-contained for https://github.com/dotnet/sdk/issues/29642
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: toolchain-release
path: dist/Release
- name: Build Debug
run: dotnet publish --configuration DebugPublish -r win-x64 -o dist/Debug --self-contained true
- name: Upload Debug
uses: actions/upload-artifact@v4
with:
name: toolchain-debug
path: dist/Debug