Skip to content

Commit 6374cb4

Browse files
committed
try fix ci
1 parent 2f891d0 commit 6374cb4

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,39 @@ 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+
token: ${{ secrets.BUILD_ASSETS_PAT }}
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+
}
44+
45+
- name: Install Frontend Dependencies
46+
shell: powershell
47+
run: |
48+
corepack enable
49+
Push-Location MaiChartManager\Front
50+
pnpm install
51+
Pop-Location
52+
2053
2154
- name: Build
2255
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)