Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/bindings: build o1js bindings in CI #1902

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
23 changes: 23 additions & 0 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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.

name: Build o1js bindings

on:
pull_request:

jobs:
nix-build:
name: build-bindings-ubuntu
runs-on: ubuntu-latest
steps:
- name: Disable smudging
run: echo "GIT_LFS_SKIP_SMUDGE=1" >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- run: |
set -Eeu
export GIT_LFS_SKIP_SMUDGE=1
./pin.sh
nix develop o1js --command bash --command "npm run build:update-bindings"
25 changes: 23 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
dune-nix.inputs.nixpkgs.follows = "nixpkgs";
dune-nix.inputs.flake-utils.follows = "flake-utils";
flake-utils.url = "github:numtide/flake-utils";
nix-github-actions.url = "github:nix-community/nix-github-actions";
nix-github-actions.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
outputs = { self, nixpkgs, nix-github-actions, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs= (nixpkgs.legacyPackages."${system}".extend
Expand Down
Loading