-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.21 KB
/
build.yaml
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
name: "build"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install nix
uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
sandbox = false
- uses: cachix/cachix-action@v12
with:
name: opensource
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: nix build
run: nix build
bench:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install nix
uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
sandbox = false
- uses: cachix/cachix-action@v12
with:
name: opensource
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: brainhask-bench
run: |
nix build .#brainhask-bench-results --accept-flake-config
cat ./result/benchmark-results.html > ~/benchmark-results.html
- name: upload-bench-results
uses: actions/upload-artifact@v3
with:
name: brainhask-bench-results-${{ github.run_id }}-${{ github.run_number }}
path: ~/benchmark-results.html