-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.21 KB
/
build.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
name: Build & test
on:
push:
branches:
- master
pull_request:
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
substituters = https://cache.nixos.org https://hydra.iohk.io https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
system-features = benchmark big-parallel kvm nixos-test
- uses: cachix/cachix-action@v10
with:
name: crypto-venues
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build library
run: nix-build -A orderbook.components.library
- name: Build tests
run: nix-build -A orderbook.components.tests
- name: Run tests
run: $(nix-build -A orderbook.components.tests)/bin/orderbook-test
- name: Build executables
run: nix-build -A orderbook.components.exes
- name: Test shell
run: nix-shell --run "echo success"