Skip to content

Commit

Permalink
Add nix build output logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Feb 27, 2025
1 parent ff60d02 commit 78f4b1d
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ steps:
steps:
- label: Nix Build (linux)
commands:
- nix build .#cardano-wallet
- nix build .#cardano-node
- nix build .#cardano-cli
- nix build -L .#cardano-wallet
- nix build -L .#cardano-node
- nix build -L .#cardano-cli
agents:
system: ${linux}

Expand Down Expand Up @@ -298,7 +298,7 @@ steps:

- label: Build Benchmarks (linux)
command:
- nix build .#ci.benchmarks.all
- nix build -L .#ci.benchmarks.all
agents:
system: ${linux}

Expand All @@ -311,8 +311,8 @@ steps:
key: nix-build-benchmarks
depends_on: trigger-benchmarks
command:
- nix build
- nix build .#ci.benchmarks.all
- nix build -L
- nix build -L .#ci.benchmarks.all
agents:
system: ${linux}
queue: adrestia-bench
Expand Down Expand Up @@ -434,15 +434,15 @@ steps:
- label: Build Package (macOS, x86_64)
key: macos-intel-package
depends_on: block-macos
command: 'nix build -o result/macos-intel .#packages.x86_64-darwin.ci.artifacts.macos-intel.release'
command: 'nix build -L -o result/macos-intel .#packages.x86_64-darwin.ci.artifacts.macos-intel.release'
artifact_paths: [ "./result/macos-intel/**" ]
agents:
system: ${macos}

- label: Build Package (macOS, arm64)
key: macos-arm64-package
depends_on: block-macos
command: 'nix build -o result/macos-silicon .#packages.aarch64-darwin.ci.artifacts.macos-silicon.release'
command: 'nix build -L -o result/macos-silicon .#packages.aarch64-darwin.ci.artifacts.macos-silicon.release'
artifact_paths: [ "./result/macos-silicon/**" ]
agents:
system: ${macos}
Expand Down Expand Up @@ -525,7 +525,7 @@ steps:
key: windows-package
depends_on:
- trigger-build-windows-artifacts
command: nix build -o result/windows .#ci.artifacts.win64.release
command: nix build -L -o result/windows .#ci.artifacts.win64.release
artifact_paths: [ "./result/windows/**" ]
agents:
system: ${linux}
Expand All @@ -535,7 +535,7 @@ steps:
key: windows-testing-bundle
depends_on:
- trigger-build-windows-artifacts
command: nix build -o result/windows-tests .#ci.artifacts.win64.tests
command: nix build -L -o result/windows-tests .#ci.artifacts.win64.tests
artifact_paths: [ "./result/windows-tests/**" ]
agents:
system: ${linux}
Expand Down
4 changes: 2 additions & 2 deletions .buildkite/restoration-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ steps:
key: nix-build-benchmarks
depends_on: restoration-parameters
command:
- nix build
- nix build .#ci.benchmarks.all
- nix build -L
- nix build -L .#ci.benchmarks.all
agents:
system: ${linux}
queue: adrestia-bench
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/main/bench-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ results=api.txt
echo "--- Build"
nix --version

nix build .#ci.benchmarks.api -o bench-api
nix build -L .#ci.benchmarks.api -o bench-api
bench="./bench-api/bin/api lib/benchmarks/data/api-bench"


Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/main/bench-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkdir -p $TMPDIR
rm -rf $bench_name

echo "--- Build"
nix build .#ci.benchmarks.db -o $bench_name
nix build -L .#ci.benchmarks.db -o $bench_name

echo "+++ Run benchmark"

Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/main/bench-read-blocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ log=read-blocks.log
echo "--- Build"
nix --version

nix build .#ci.benchmarks.read-blocks -o bench-read-blocks
nix build -L .#ci.benchmarks.read-blocks -o bench-read-blocks
bench="./bench-read-blocks/bin/read-blocks"


Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/main/bench-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export TMPDIR="$TMPDIR/bench/restore"
mkdir -p "$TMPDIR"

echo "--- Build"
nix build .#ci.benchmarks.restore -o bench-restore
nix build -L .#ci.benchmarks.restore -o bench-restore

echo "--- Run benchmarks - $network"

Expand Down
4 changes: 2 additions & 2 deletions scripts/buildkite/main/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ mkdir -p artifacts
TARGET="artifacts/cardano-wallet-$RELEASE_VERSION-docker-image.tgz"

if [ "$RELEASING" = "testing" ]; then
nix build .#dockerTestImage -o "$TARGET"
nix build -L .#dockerTestImage -o "$TARGET"
else
nix build .#dockerImage -o "$TARGET"
nix build -L .#dockerImage -o "$TARGET"
fi

output=$(docker load <"$TARGET")
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/main/linux-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ git fetch --all
git checkout "$RELEASE_CANDIDATE_COMMIT"

rm -rf ./result/*
nix build -o result/linux .#ci.artifacts.linux64.release
nix build -L -o result/linux .#ci.artifacts.linux64.release
2 changes: 1 addition & 1 deletion scripts/buildkite/main/macos-intel-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ git fetch --all
git checkout "$RELEASE_CANDIDATE_COMMIT"

rm -rf ./result/*
nix build -o result/macos-intel .#packages.x86_64-darwin.ci.artifacts.macos-intel.release
nix build -L -o result/macos-intel .#packages.x86_64-darwin.ci.artifacts.macos-intel.release
2 changes: 1 addition & 1 deletion scripts/buildkite/main/macos-silicon-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ git fetch --all
git checkout "$RELEASE_CANDIDATE_COMMIT"

rm -rf ./result/*
nix build -o result/macos-silicon .#packages.aarch64-darwin.ci.artifacts.macos-silicon.release
nix build -L -o result/macos-silicon .#packages.aarch64-darwin.ci.artifacts.macos-silicon.release

0 comments on commit 78f4b1d

Please sign in to comment.