Skip to content

Commit

Permalink
ci: add job to validate devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis-ivaskevicius committed Oct 21, 2024
1 parent 7de170d commit b7a1d6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/validate-devshell.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- name: 🧰 Setup Nix
uses: nixbuild/nix-quick-install-action@v28
- name: 🚀 Eval
run: nix eval .#devShells.${{matrix.system}}.default --apply toString

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7a1d6d

Please sign in to comment.