From b7a1d6d7186bc0ee8a5e15a7e2a2159c434949e9 Mon Sep 17 00:00:00 2001 From: Gytis Ivaskevicius Date: Mon, 21 Oct 2024 16:09:30 +0300 Subject: [PATCH] ci: add job to validate devshell --- .github/workflows/validate-devshell.yml | 17 +++++++++++++++++ flake.nix | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/validate-devshell.yml diff --git a/.github/workflows/validate-devshell.yml b/.github/workflows/validate-devshell.yml new file mode 100644 index 0000000..1335763 --- /dev/null +++ b/.github/workflows/validate-devshell.yml @@ -0,0 +1,17 @@ +on: + push: + +jobs: + validate-devshell: + strategy: + matrix: + system: ["x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin"] + runs-on: ubuntu-latest + steps: + - name: 📥 Checkout repository + uses: actions/checkout@v4.2.1 + - name: 🧰 Setup Nix + uses: nixbuild/nix-quick-install-action@v28 + - name: 🚀 Eval + run: nix eval .#devShells.${{matrix.system}}.default --apply toString + diff --git a/flake.nix b/flake.nix index 472585b..dc209aa 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ outputs = {...} @ inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} { - systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"]; + systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; imports = with inputs; [ devshell.flakeModule treefmt-nix.flakeModule