-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 833 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Nix
on:
pull_request: {}
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
# the only supported system by coursier and sbt on nixpkgs
strategy:
matrix:
system: ['x86_64-linux']
steps:
- uses: actions/checkout@v4
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v31.2.0
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v16
with:
name: profunktor
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: "Nix flake check ❄️"
run: |
nix flake check --all-systems -L
nix build .#sbt -L
- name: "Nix devshell build for ${{ matrix.system }} ❄️"
run: nix build .#devShells.${{ matrix.system }}.default.inputDerivation