-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Implement GH Actions workflow, disable DOTNET telemetry in …
…batch file
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build just SharpShell | ||
working-directory: ./SharpShell | ||
run: dotnet publish -c Release /p:PublishProfile=DeployPublish --no-restore | ||
|
||
- name: Generate dependency | ||
run: python generate_embedded.py | ||
|
||
- name: Build | ||
working-directory: ./SharpShell.Loader | ||
run: dotnet build -c Debug /p:RunAnalyzers=false --no-restore | ||
|
||
- name: Package | ||
run: | | ||
mkdir release\pwsh | ||
xcopy README.md release\ | ||
xcopy pwsh.bat release\ | ||
xcopy run_pwsh.xml release\pwsh\ | ||
xcopy SharpShell.Loader\bin\Debug\net6.0\SharpShell.Loader.dll release\pwsh\ | ||
7z a -tzip SharpShell.zip .\release\* | ||
- name: Upload artifacts (dotnet) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: SharpShell | ||
path: .\release\* | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: SharpShell.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@echo off | ||
|
||
set DOTNET_CLI_ANALYTICS_OUTPUT=1 | ||
set DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
cd pwsh | ||
..\dotnet\dotnet.exe msbuild .\run_pwsh.xml |