-
Notifications
You must be signed in to change notification settings - Fork 30
54 lines (52 loc) · 1.49 KB
/
run.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
44
45
46
47
48
49
50
51
52
53
54
name: Run benchmarks
on:
pull_request:
push:
branches:
- main
paths-ignore:
- README.md
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fregante/setup-git-user@v2
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
async-graphql/target
juniper/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#- uses: actions/cache@v3
# with:
# path: ~/.local/share/virtualenvs
# key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install crystal
run: |
curl -fsSL https://crystal-lang.org/install.sh | sudo bash
- name: Run benchmarks
run: nix-shell --quiet --run ./run.cr
- name: Push readme
if: ${{ github.event_name == 'push' }}
run: |
git add README.md
git commit -m "update readme"
git push