Skip to content

Commit 44ac92f

Browse files
committed
ci: build devshell for all supported systems
1 parent 16a7e8d commit 44ac92f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
name: Checks
11+
name: Build
1212
runs-on: ubuntu-latest
1313

14+
strategy:
15+
matrix:
16+
system: ['x86_64-linux', 'aarch64-linux', 'x86_64-darwin', 'aarch64-darwin']
17+
1418
steps:
1519
- uses: actions/checkout@v4
1620

@@ -27,3 +31,6 @@ jobs:
2731
run: |
2832
nix flake check --all-systems -L
2933
nix build .#sbt -L
34+
35+
- name: "Nix devshell build for ${{ matrix.system }} ❄️"
36+
run: nix build .#devShells.${{ matrix.system }}.default.inputDerivation

flake.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,22 @@
2626
inherit system;
2727
overlays = [ scalaOverlay ];
2828
};
29+
30+
inherit (pkgs) lib stdenv;
31+
32+
linuxPkgs = lib.optional stdenv.isLinux [ pkgs.coursier ];
2933
in
3034
{
3135
devShells.default = pkgs.mkShell {
3236
name = "profunktor-scala-dev-shell";
3337

3438
buildInputs = with pkgs; [
35-
coursier
3639
gnupg
3740
jekyll
3841
jre
3942
sbt
4043
scala-cli
41-
];
44+
] ++ linuxPkgs;
4245

4346
shellHook = ''
4447
JAVA_HOME="${pkgs.jre}"

0 commit comments

Comments
 (0)