ci.优化 DevBuild

This commit is contained in:
Liam Sho
2022-05-09 15:58:57 +08:00
parent 1c4832b61b
commit bcd749f1f7
3 changed files with 17 additions and 6 deletions

View File

@@ -19,22 +19,19 @@ jobs:
dotnet-version: 6.0.x
- name: Run dev build task
run: pwsh .\ci-dev-build.ps1
run: pwsh .\build.ps1 DevBuild
- name: Upload Artifacts Release
uses: actions/upload-artifact@v3
with:
name: MaaFull-DevBuild-Release
path: ./artifacts/MaaFull-DevBuild-Release*
- name: Upload Artifacts RelWithDebInfo
uses: actions/upload-artifact@v3
with:
name: MaaFull-DevBuild-RelWithDebInfo
path: ./artifacts/MaaFull-DevBuild-RelWithDebInfo*
- name: Upload Artifacts CICD
uses: actions/upload-artifact@v3
with:
name: MaaFull-DevBuild-CICD
path: ./artifacts/MaaFull-DevBuild-CICD*

16
build.ps1 Normal file
View File

@@ -0,0 +1,16 @@
if ($args.Length -ne 1) {
throw "One argument required"
}
$target = $args[0]
$valid_targets = @("ReleaseCore", "ReleaseWpf", "ReleaseResource", "DevBuild")
if (!$valid_targets.Contains($target)) {
throw "$target is not a valid target"
}
Set-Location -Path .\src\MeoAssistantBuilder
dotnet run -- --target $target
Set-Location -Path ..\..\

View File

@@ -1,2 +0,0 @@
Set-Location .\src\MeoAssistantBuilder
dotnet run -- --target DevBuild