-
Notifications
You must be signed in to change notification settings - Fork 30
52 lines (50 loc) · 1.4 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
name: Run benchmarks
on:
pull_request:
push:
branches:
- main
paths-ignore:
- README.md
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: fregante/setup-git-user@v2
- uses: cachix/install-nix-action@v24
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: 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