From 896ee0dc8e29ef364c60e5da5d6d4a13724bf4fb Mon Sep 17 00:00:00 2001 From: Matt Walker Date: Fri, 15 Nov 2024 10:33:17 -0500 Subject: [PATCH] ci/bindings: create a platform matrix in the flake --- .github/workflows/build-bindings.yml | 8 +++++--- flake.nix | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-bindings.yml b/.github/workflows/build-bindings.yml index d60195155..75171c083 100644 --- a/.github/workflows/build-bindings.yml +++ b/.github/workflows/build-bindings.yml @@ -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" diff --git a/flake.nix b/flake.nix index 889fa5193..fde7c974e 100644 --- a/flake.nix +++ b/flake.nix @@ -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: @@ -85,6 +87,7 @@ extensions = [ "rust-src" ]; }); in { + githubActions.matrix = nix-github-actions.lib.mkGithubMatrix { checks = self.packages; }; formatter = pkgs.nixfmt; inherit mina; devShells = {