Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Oct 29, 2024
1 parent 48f483e commit 56e7535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/distribution/windows/build-all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Write-Output "cargo version: $(cargo --version)"
Write-Output "flatc version: $(flatc --version)"
Write-Output "protoc version: $(protoc --version)"

# Set the default rust toolchain so that consensus rust dependencies use it.
rustup default $rustVersion-x86_64-pc-windows-gnu

Write-Output "Building consensus..."
stack build
if ($LASTEXITCODE -ne 0) { throw "Failed building consensus" }
Expand All @@ -14,7 +17,7 @@ stack exec -- cargo build --manifest-path concordium-node\Cargo.toml --release -
if ($LASTEXITCODE -ne 0) { throw "Failed building node" }

Write-Output "Building the collector..."
cargo build --manifest-path collector\Cargo.toml --release --locked
cargo +$rustVersion-x86_64-pc-windows-msvc build --manifest-path collector\Cargo.toml --release --locked
if ($LASTEXITCODE -ne 0) { throw "Failed building the collector" }

Write-Output "Building node runner service..."
Expand Down

0 comments on commit 56e7535

Please sign in to comment.