mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
ci.优化 DevBuild
This commit is contained in:
5
.github/workflows/maa-dev-build.yaml
vendored
5
.github/workflows/maa-dev-build.yaml
vendored
@@ -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
16
build.ps1
Normal 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 ..\..\
|
||||
@@ -1,2 +0,0 @@
|
||||
Set-Location .\src\MeoAssistantBuilder
|
||||
dotnet run -- --target DevBuild
|
||||
Reference in New Issue
Block a user