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 e69c9b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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"
5 changes: 4 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 Expand Up @@ -85,6 +87,7 @@
extensions = [ "rust-src" ];
});
in {
githubActions = nix-github-actions.lib.mkGithubMatrix { checks = self.packages; };
formatter = pkgs.nixfmt;
inherit mina;
devShells = {
Expand Down

0 comments on commit e69c9b8

Please sign in to comment.