Skip to content

Commit

Permalink
Windows bootstrap build arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Aug 31, 2024
1 parent 6699a38 commit d72ba51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/barrow/barrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (b *BarrowCtx) compile(ctx context.Context, location string) (*Crate, error
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
cmd.Env = b.environ
stage("compile", "crate: %s version: %s", crate.Name, crate.Version)
stage("compile", "crate: %s version: %s for %s/%s", crate.Name, crate.Version, b.Target, b.Arch)
status("%s", cmdStringsArgs(cmd))
if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "compile %s error \x1b[31m%s\x1b[0m\n", crate.Name, err)
Expand Down
8 changes: 7 additions & 1 deletion script/bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ Copy-Item -Force -Path $BALI_EXE -Destination $BALI_STAGE0_EXE

Write-Host -ForegroundColor Green "bali: create zip package ..."

$ps = Start-Process -FilePath $BALI_STAGE0_EXE -WorkingDirectory $SOURCE_DIR -ArgumentList "--pack=zip" -PassThru -Wait -NoNewWindow
$ps = Start-Process -FilePath $BALI_STAGE0_EXE -WorkingDirectory $SOURCE_DIR -ArgumentList "--target=windows --arch=amd64 --pack=zip" -PassThru -Wait -NoNewWindow
if ($ps.ExitCode -ne 0) {
Exit $ps.ExitCode
}

$ps = Start-Process -FilePath $BALI_STAGE0_EXE -WorkingDirectory $SOURCE_DIR -ArgumentList "--target=windows --arch=arm64 --pack=zip" -PassThru -Wait -NoNewWindow
if ($ps.ExitCode -ne 0) {
Exit $ps.ExitCode
}


Write-Host -ForegroundColor Green "bali: bootstrap success"

0 comments on commit d72ba51

Please sign in to comment.