forked from Haroldwonder/TrustLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
26 lines (21 loc) · 770 Bytes
/
build.ps1
File metadata and controls
26 lines (21 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# TrustLink Build Script
Write-Host "Building TrustLink Smart Contract..." -ForegroundColor Cyan
# Build the contract
Write-Host "`nStep 1: Building contract..." -ForegroundColor Yellow
cargo build --target wasm32-unknown-unknown --release
if ($LASTEXITCODE -eq 0) {
Write-Host "✓ Build successful!" -ForegroundColor Green
# Run tests
Write-Host "`nStep 2: Running tests..." -ForegroundColor Yellow
cargo test
if ($LASTEXITCODE -eq 0) {
Write-Host "✓ All tests passed!" -ForegroundColor Green
} else {
Write-Host "✗ Tests failed" -ForegroundColor Red
exit 1
}
} else {
Write-Host "✗ Build failed" -ForegroundColor Red
exit 1
}
Write-Host "`n✓ TrustLink is ready!" -ForegroundColor Green