Skip to content

Commit 2d30379

Browse files
committed
Update dotnet-desktop.yml
1 parent cd84418 commit 2d30379

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31-
# Checkout COMMON_GRAPHICS into a subfolder
31+
# Checkout COMMON_GRAPHICS repository into a subfolder
3232
- name: Checkout COMMON_GRAPHICS
3333
uses: actions/checkout@v4
3434
with:
3535
repository: danmunteanu/COMMON_GRAPHICS
36-
path: ../COMMON_GRAPHICS
36+
path: COMMON_GRAPHICS
3737
fetch-depth: 0
3838

3939
# Install .NET SDK
@@ -46,29 +46,34 @@ jobs:
4646
- name: Setup MSBuild.exe
4747
uses: microsoft/setup-msbuild@v2
4848

49-
# Restore COMMON_GRAPHICS packages
49+
# Restore and build COMMON_GRAPHICS
5050
- name: Restore COMMON_GRAPHICS
5151
run: msbuild COMMON_GRAPHICS/$env:CommonSolution_Name /t:Restore /p:Configuration=${{ matrix.configuration }}
5252

53-
# Build COMMON_GRAPHICS
5453
- name: Build COMMON_GRAPHICS
5554
run: msbuild COMMON_GRAPHICS/$env:CommonSolution_Name /p:Configuration=${{ matrix.configuration }}
5655

57-
# Restore RAYTRACER_UNILIGHT packages
56+
# Copy the compiled DLL into the main project folder
57+
- name: Copy COMMON_GRAPHICS DLL
58+
run: |
59+
mkdir -p RAYTRACER_UNILIGHT/libs
60+
copy COMMON_GRAPHICS/bin/${{ matrix.configuration }}/net8.0/COMMON_GRAPHICS.dll RAYTRACER_UNILIGHT/libs/
61+
62+
# Restore main project packages
5863
- name: Restore RAYTRACER_UNILIGHT
5964
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=${{ matrix.configuration }}
6065

61-
# Build RAYTRACER_UNILIGHT
66+
# Build main project
6267
- name: Build RAYTRACER_UNILIGHT
6368
run: msbuild $env:Solution_Name /p:Configuration=${{ matrix.configuration }}
6469

6570
# Run tests (optional)
66-
# - name: Run tests
71+
#- name: Run tests
6772
# run: dotnet test $env:Solution_Name --configuration ${{ matrix.configuration }}
6873
# continue-on-error: true
6974

70-
# Publish RAYTRACER_UNILIGHT
71-
- name: Publish
75+
# Publish main project
76+
- name: Publish RAYTRACER_UNILIGHT
7277
run: dotnet publish $env:Project_Name -c ${{ matrix.configuration }} -o publish
7378

7479
# Upload build artifacts

0 commit comments

Comments
 (0)