Skip to content

Commit 35dc7e5

Browse files
committed
add linux for workflow
1 parent 52eedf4 commit 35dc7e5

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/dotnet-publish.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
build:
12+
build-windows:
1313
runs-on: windows-latest
1414

1515
steps:
@@ -33,5 +33,31 @@ jobs:
3333
- name: Upload artifact
3434
uses: actions/upload-artifact@v4
3535
with:
36-
name: ebuild-package
36+
name: ebuild-windows
37+
path: ./publish
38+
build-linux:
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v3
44+
45+
- name: Setup .NET
46+
uses: actions/setup-dotnet@v3
47+
with:
48+
dotnet-version: '8.0.x'
49+
50+
- name: Restore dependencies
51+
run: dotnet restore ebuild.sln
52+
53+
- name: Build solution
54+
run: dotnet build ebuild.sln --configuration Release --no-restore
55+
56+
- name: Publish artifacts
57+
run: dotnet publish ebuild/ebuild.csproj --configuration Release --output ./publish
58+
59+
- name: Upload artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: ebuild-linux
3763
path: ./publish

0 commit comments

Comments
 (0)