Skip to content

Commit

Permalink
nix: rename default-nix to default-amd64.nix
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Biesek <[email protected]>
  • Loading branch information
michalbiesek committed Aug 7, 2023
1 parent f6b9541 commit 5016500
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions build-aux/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,7 @@ mkdir -p /nix

NIX_ARGS="--extra-experimental-features nix-command --print-build-logs --option cores $(nproc) --option max-jobs $(nproc)"

$RUNTIME run --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \
nix $NIX_ARGS build --file nix/
cp ./result/bin/crun $OUTDIR/crun-$VERSION-linux-amd64

rm -rf result

$RUNTIME run --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \
nix $NIX_ARGS build --file nix/ --arg enableSystemd false
cp ./result/bin/crun $OUTDIR/crun-$VERSION-linux-amd64-disable-systemd

rm -rf result

for ARCH in arm64 ppc64le riscv64; do
for ARCH in amd64 arm64 ppc64le riscv64; do
$RUNTIME run --rm $RUNTIME_EXTRA_ARGS --privileged -v /nix:/nix -v ${PWD}:${PWD} -w ${PWD} ${NIX_IMAGE} \
nix $NIX_ARGS build --file nix/default-${ARCH}.nix
cp ./result/bin/crun $OUTDIR/crun-$VERSION-linux-${ARCH}
Expand Down
File renamed without changes.

0 comments on commit 5016500

Please sign in to comment.