Skip to content

Commit

Permalink
Cleanup Nix store after the o1js bindings build procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv committed Nov 26, 2024
1 parent a0f0f34 commit 538b686
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Purpose: We want to build the o1js bindings in CI so that people in the
# Purpose: We want to build the o1js bindings in CI so that people in the
# community can change them without being scared of breaking things, or
# needing to do the complicated (without nix) build setup.

Expand All @@ -7,7 +7,7 @@ name: Build o1js bindings
on:
pull_request:

jobs:
jobs:
nix-build:
name: build-bindings-ubuntu
runs-on: [sdk-self-hosted-linux-amd64-build-system]
Expand All @@ -17,9 +17,16 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: |
- name: Build the o1js bindings
run: |
set -Eeu
# Until we restart the runner and the PATH gets updated from /etc/bash.bashrc
export PATH="$PATH":/nix/var/nix/profiles/default/bin
./pin.sh
nix develop o1js --command bash -c "npm run build:update-bindings"
- name: Cleanup the Nix store
run: |
nix-env --delete-generations old
nix-collect-garbage -d --quiet
nix-store --gc --print-dead
nix-store --optimise

0 comments on commit 538b686

Please sign in to comment.