Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions building/windows/build.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Ensure udsactor-builder is up up date
# To be executed on building/windows/ directory
$ErrorActionPreference = "Stop"

docker build -t udsactor-builder .
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
# Get full path of the ../.. directory (i.e., the root of the project)
$projectDir = Convert-Path ../..

# Run the container with the current directory mounted
docker run --rm -v ${projectDir}:c:\crate -w /crate udsactor-builder cargo build --release
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
# Note: the target/release/*.exe binaries will be created
Loading