-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (43 loc) · 1010 Bytes
/
nix.yml
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
38
39
40
41
42
43
44
45
name: Nix
on:
push:
branches:
- master
- catalyst-fund*
pull_request:
jobs:
build-server:
name: Build server
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/nix-common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Flake check
run: nix flake check
- name: Build
run: nix build .#vit-servicing-station-server
build:
name: Build ${{ matrix.package }}
needs: build-server
strategy:
fail-fast: false
matrix:
package:
- cli
- lib
- tests
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/nix-common-setup
with:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build
run: nix build .#vit-servicing-station-${{ matrix.package }}