mirror of
https://github.com/zhicheng233/VHDPatchFix.git
synced 2026-09-19 01:17:59 -04:00
Compare commits
3
Commits
961fbac478
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58db98e2ba | ||
|
|
8bdb56eac0 | ||
|
|
51675db394 |
@@ -1,5 +1,4 @@
|
|||||||
# This workflow will build a .NET project
|
# This workflow will build and publish a .NET project
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
||||||
|
|
||||||
name: .NET
|
name: .NET
|
||||||
|
|
||||||
@@ -11,18 +10,32 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --no-restore
|
run: dotnet build src/VHDPatchFix/VHDPatchFix.csproj --no-restore --configuration Release
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-build --verbosity normal
|
run: dotnet test --no-build --configuration Release --verbosity normal
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: dotnet publish src/VHDPatchFix/VHDPatchFix.csproj --configuration Release --runtime win-x64 --self-contained true --property PublishSingleFile=true --output ./publish
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: VHDPatchFix-win-x64
|
||||||
|
path: ./publish
|
||||||
|
if-no-files-found: error
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
Preview a change without writing:
|
Preview a change without writing:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
dotnet run --project src\VHDPatchFix\VHDPatchFix.csproj -- --vhd "I:\B.vhd" --parent "I:\A.vhd" --dry-run
|
vhdfix --vhd "I:\B.vhd" --parent "I:\A.vhd" --dry-run
|
||||||
```
|
```
|
||||||
|
|
||||||
Patch the VHD and create the default `.bak` backup:
|
Patch the VHD and create the default `.bak` backup:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
dotnet run --project src\VHDPatchFix\VHDPatchFix.csproj -- --vhd "I:\B.vhd" --parent "I:\A.vhd"
|
vhdfix --vhd "I:\B.vhd" --parent "I:\A.vhd"
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify after writing:
|
Verify after writing:
|
||||||
|
|||||||
Reference in New Issue
Block a user