Skip to content

Commit 211f2b6

Browse files
committed
try fix ci
1 parent 2f891d0 commit 211f2b6

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,30 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20+
submodules: recursive
21+
22+
- name: Checkout Assets
23+
uses: clansty/checkout@main
24+
with:
25+
repository: MuNET-OSS/AquaMai-Build-Assets
26+
ssh-key: ${{ secrets.BUILD_ASSETS_KEY }}
27+
path: build-assets
28+
max-attempts: 50
29+
min-retry-interval: 1
30+
max-retry-interval: 5
31+
32+
- name: Copy Assets
33+
shell: powershell
34+
run: |
35+
Write-Host "Copying assets..."
36+
Copy-Item -Path "build-assets/SDEZ/*" -Destination "AquaMai/Libs/" -Recurse -Force
37+
38+
- name: Setup Nuget
39+
run: |
40+
dotnet nuget list source
41+
if (-not (dotnet nuget list source | Select-String "nuget.org")) {
42+
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
43+
}
2044
2145
- name: Build
2246
shell: powershell

AquaMai

Packaging/Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Write-Host "Building AquaMai..." -ForegroundColor Cyan
7272
Push-Location "$ProjectRoot\AquaMai"
7373
try {
7474
Stop-Process -Name "dotnet" -Force -ErrorAction SilentlyContinue
75-
dotnet cake
75+
./build.ps1
7676

7777
$TargetResDir = "$ProjectRoot\MaiChartManager\Resources"
7878
if (-not (Test-Path $TargetResDir)) { New-Item -ItemType Directory -Path $TargetResDir }

0 commit comments

Comments
 (0)