Skip to content

Commit 535d155

Browse files
Simplify the build process in GitHub Actions
1 parent 1430a32 commit 535d155

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -573,41 +573,23 @@ jobs:
573573
- name: Build SharpHook
574574
shell: pwsh
575575
run: |
576-
cd SharpHook
577-
dotnet build --nologo -c Release /p:ContinuousIntegrationBuild=true
578-
579-
cd ..\SharpHook.R3
580-
dotnet build --nologo -c Release /p:ContinuousIntegrationBuild=true
581-
582-
cd ..\SharpHook.Reactive
583-
dotnet build --nologo -c Release /p:ContinuousIntegrationBuild=true
584-
585-
cd ..\SharpHook.Tests
586576
dotnet build --nologo -c Release /p:ContinuousIntegrationBuild=true
587577
588578
- name: Test SharpHook
589579
shell: pwsh
590580
run: |
591-
cd SharpHook.Tests
592581
dotnet test --no-build -c Release
593582
594583
- name: Pack SharpHook
595584
shell: pwsh
596585
run: |
597-
cd SharpHook
598-
dotnet pack --no-build --nologo -c Release -o ${{github.workspace}}\build\
599-
600-
cd ..\SharpHook.R3
601-
dotnet pack --no-build --nologo -c Release -o ${{github.workspace}}\build\
602-
603-
cd ..\SharpHook.Reactive
604-
dotnet pack --no-build --nologo -c Release -o ${{github.workspace}}\build\
586+
dotnet pack --no-build --nologo -c Release -o ${{github.workspace}}\artifacts\packages\
605587
606588
- name: Upload SharpHook
607589
uses: actions/upload-artifact@v6
608590
with:
609591
name: sharphook-build
610-
path: ${{github.workspace}}\build\*
592+
path: ${{github.workspace}}\artifacts\packages\*
611593

612594
- name: Build Docs
613595
shell: pwsh

SharpHook.Sample/SharpHook.Sample.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<TargetFrameworks></TargetFrameworks>
66
<TargetFramework>net10.0</TargetFramework>
7+
<IsPackable>false</IsPackable>
78
<PublishTrimmed>true</PublishTrimmed>
89
<TrimmerDefaultAction>link</TrimmerDefaultAction>
910
<ApplicationManifest>app.manifest</ApplicationManifest>

0 commit comments

Comments
 (0)