Skip to content

Commit

Permalink
ci/bindings: create a platform matrix in the flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzixnerd committed Nov 15, 2024
1 parent 294f61b commit 896ee0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- run: ./pin.sh
- run: 'nix develop o1js --command bash --command "npm run build:bindings && npm run build:update-bindings"'
- uses: cachix/install-nix-action@v30\
- run: |
set -Eeu
./pin.sh
nix develop o1js --command bash --command "npm run build:bindings && npm run build:update-bindings"
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
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:
flake-utils.lib.eachDefaultSystem (system:
Expand Down Expand Up @@ -85,6 +87,7 @@
extensions = [ "rust-src" ];
});
in {
githubActions.matrix = nix-github-actions.lib.mkGithubMatrix { checks = self.packages; };
formatter = pkgs.nixfmt;
inherit mina;
devShells = {
Expand Down

0 comments on commit 896ee0d

Please sign in to comment.