Skip to content

Commit 8b36044

Browse files
authored
add workflow for building .net project
1 parent f883016 commit 8b36044

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/dotnet_build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Dotnet Build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
pull_request:
8+
paths-ignore:
9+
- '**/*.md'
10+
workflow_dispatch:
11+
# allows manual trigger
12+
13+
jobs:
14+
linux:
15+
runs-on: windows-latest
16+
strategy:
17+
matrix:
18+
builds: [ 'Debug', 'ExportDebug', 'ExportRelease', 'DebugClient', 'DebugServer' ]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Clone EIV Nuget repository
24+
uses: actions/checkout@v2
25+
with:
26+
repository: ExtractIntoVoid/Nuget
27+
path: eiv_nuget
28+
29+
- name: Setup .NET
30+
uses: actions/setup-dotnet@v4
31+
with:
32+
dotnet-version: '8.0.x'
33+
34+
- name: Add eiv_nuget to nuget souce
35+
run: dotnet nuget add source --name eiv_nuget "eiv_nuget"
36+
37+
- name: Publish
38+
run: dotnet publish EIV_Game.csproj -c ${{ matrix.builds }} -o Out
39+
40+
# This is test if works. For future we dont need this!
41+
- name: Upload artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: EIV_Game_DOTNET-${{ matrix.builds }}
45+
path: Out
46+
if-no-files-found: error

0 commit comments

Comments
 (0)