Skip to content

Commit 2f1e56d

Browse files
committed
Update dotnet-desktop.yml
1 parent 12374bb commit 2f1e56d

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,61 @@ jobs:
1717
env:
1818
Solution_Name: RAYTRACER_UNILIGHT.sln
1919
Project_Name: RAYTRACER_UNILIGHT.csproj
20+
CommonRepo_Url: https://github.com/danmunteanu/COMMON_GRAPHICS.git
21+
CommonSolution_Name: COMMON_GRAPHICS.sln
22+
CommonProject_Name: COMMON_GRAPHICS.csproj
2023

2124
steps:
22-
- name: Checkout
25+
# Checkout main repository
26+
- name: Checkout RAYTRACER_UNILIGHT
2327
uses: actions/checkout@v4
2428
with:
2529
fetch-depth: 0
2630

27-
# Install the .NET SDK
31+
# Checkout COMMON_GRAPHICS into a subfolder
32+
- name: Checkout COMMON_GRAPHICS
33+
uses: actions/checkout@v4
34+
with:
35+
repository: danmunteanu/COMMON_GRAPHICS
36+
path: COMMON_GRAPHICS
37+
fetch-depth: 0
38+
39+
# Install .NET SDK
2840
- name: Setup .NET
2941
uses: actions/setup-dotnet@v4
3042
with:
3143
dotnet-version: 8.0.x
3244

33-
# Add MSBuild to PATH
45+
# Setup MSBuild
3446
- name: Setup MSBuild.exe
3547
uses: microsoft/setup-msbuild@v2
3648

37-
# Restore NuGet packages
38-
- name: Restore
49+
# Restore COMMON_GRAPHICS packages
50+
- name: Restore COMMON_GRAPHICS
51+
run: msbuild COMMON_GRAPHICS/$env:CommonSolution_Name /t:Restore /p:Configuration=${{ matrix.configuration }}
52+
53+
# Build COMMON_GRAPHICS
54+
- name: Build COMMON_GRAPHICS
55+
run: msbuild COMMON_GRAPHICS/$env:CommonSolution_Name /p:Configuration=${{ matrix.configuration }}
56+
57+
# Restore RAYTRACER_UNILIGHT packages
58+
- name: Restore RAYTRACER_UNILIGHT
3959
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=${{ matrix.configuration }}
4060

41-
# Build the project
42-
- name: Build
61+
# Build RAYTRACER_UNILIGHT
62+
- name: Build RAYTRACER_UNILIGHT
4363
run: msbuild $env:Solution_Name /p:Configuration=${{ matrix.configuration }}
4464

45-
# Run tests (if you add a test project later)
46-
- name: Run tests
47-
run: dotnet test $env:Solution_Name --configuration ${{ matrix.configuration }}
48-
continue-on-error: true
65+
# Run tests (optional)
66+
# - name: Run tests
67+
# run: dotnet test $env:Solution_Name --configuration ${{ matrix.configuration }}
68+
# continue-on-error: true
4969

50-
# Publish the project (generates an exe in artifact folder)
70+
# Publish RAYTRACER_UNILIGHT
5171
- name: Publish
5272
run: dotnet publish $env:Project_Name -c ${{ matrix.configuration }} -o publish
5373

54-
# Upload build output as artifact
74+
# Upload build artifacts
5575
- name: Upload build artifacts
5676
uses: actions/upload-artifact@v4
5777
with:

0 commit comments

Comments
 (0)